#include <FFLayer.h>
Inheritance diagram for FD::FFLayer:


Public Member Functions | |
| FFLayer () | |
| FFLayer (int _nbNeurons, int _nbInputs, float *_weights, int _weightOffset, int _neuronOffset, std::string type="tansig") | |
| FFLayer (const FFLayer &layer) | |
| void | setupAfterRead (float *_weights, int _weightOffset, int _neuronOffset) |
| void | update (const float *previous, float *value, float *deriv=NULL) |
| int | size () |
| int | getNbWeights () |
| int | getNeuronWeightOffset (int i) |
| int | getWeightOffset () |
| int | getNeuronOffset () |
| void | init (float minmax) |
| void | init (double *mean, double *std) |
| void | setBias (double *minmax) |
| float * | getWeights (int i) |
| void | printOn (std::ostream &out) const |
| void | readFrom (std::istream &in) |
| void | setDerivOffset (float d) |
Public Attributes | |
| void(* | func )(float *, float *, int) |
| void(* | deriv_func )(float *, float *, int) |
Protected Attributes | |
| int | nbNeurons |
| int | nbInputs |
| float * | weights |
| std::string | funcType |
| int | weightOffset |
| int | neuronOffset |
| float | derivOffset |
|
|
This (empty) constructor is used for parsing a layer from a file |
|
||||||||||||||||||||||||||||
|
Standard constructor |
|
|
Unimplemented yet (not sure if we *should* implement it) |
|
|
Number of weights |
|
|
Offset of a certain neuron's weight vector relative to the whole network's weight vector |
|
||||||||||||
|
Initializes the layer values given the means and standard deviations of each of the inputs |
|
|
Writes the layer to a stream Implements FD::Object. |
|
|
Reads the layer from a stream (remember to call setupAfterRead after that Reimplemented from FD::Object. |
|
|
Sets the bias vector |
|
||||||||||||||||
|
Called after reading a layer to setup the weight vector correctly |
|
|
Layer size |
|
||||||||||||||||
|
Calculates all the activation functions (and derivatives) for a given input |
|
|
Activation function derivative pointer |
|
|
Offset of the layer's first neuron derivative in the list of all network neurons |
|
|
Activation function pointer |
|
|
Number of input neurons |
|
|
Number of neurons in the layer |
|
|
Offset of the layer's first neuron in the list of all network neurons (not too sure about that one, though) |
|
|
Offset of the layer weight vector in the network weight vector |
|
|
Pointer to the weight vector |
1.4.4