Input layer.
More...
#include <Input.h>
|
| Input (int dim1, int dim2, int dim3) |
|
virtual OutputInfo | initialize (std::vector< double * > ¶meterPointers, std::vector< double * > ¶meterDerivativePointers) |
| Fill in the parameter pointers and parameter derivative pointers. More...
|
|
virtual void | initializeParameters () |
| Initialize the parameters. More...
|
|
virtual void | updatedParameters () |
| Generate internal parameters from externally visible parameters. More...
|
|
virtual void | forwardPropagate (Eigen::MatrixXd *x, Eigen::MatrixXd *&y, bool dropout, double *error=0) |
| Forward propagation in this layer. More...
|
|
virtual void | backpropagate (Eigen::MatrixXd *ein, Eigen::MatrixXd *&eout, bool backpropToPrevious) |
| Backpropagation in this layer. More...
|
|
virtual Eigen::MatrixXd & | getOutput () |
| Output after last forward propagation. More...
|
|
virtual Eigen::VectorXd | getParameters () |
| Get the current values of parameters (weights, biases, ...). More...
|
|
virtual | ~Layer () |
|
OpenANN::Input::Input |
( |
int |
dim1, |
|
|
int |
dim2, |
|
|
int |
dim3 |
|
) |
| |
virtual void OpenANN::Input::backpropagate |
( |
Eigen::MatrixXd * |
ein, |
|
|
Eigen::MatrixXd *& |
eout, |
|
|
bool |
backpropToPrevious |
|
) |
| |
|
virtual |
Backpropagation in this layer.
- Parameters
-
ein | pointer to error signal of the higher layer |
eout | returns a pointer to error signal of the layer (derivative of the error with respect to the input) |
backpropToPrevious | backpropagate errors to previous layers |
Implements OpenANN::Layer.
virtual void OpenANN::Input::forwardPropagate |
( |
Eigen::MatrixXd * |
x, |
|
|
Eigen::MatrixXd *& |
y, |
|
|
bool |
dropout, |
|
|
double * |
error = 0 |
|
) |
| |
|
virtual |
Forward propagation in this layer.
- Parameters
-
x | pointer to input of the layer (with bias) |
y | returns a pointer to output of the layer |
dropout | enable dropout for regularization |
error | error value, will be updated with regularization terms |
Implements OpenANN::Layer.
virtual Eigen::MatrixXd& OpenANN::Input::getOutput |
( |
) | |
|
|
virtual |
Output after last forward propagation.
- Returns
- output
Implements OpenANN::Layer.
virtual Eigen::VectorXd OpenANN::Input::getParameters |
( |
) | |
|
|
virtual |
Get the current values of parameters (weights, biases, ...).
- Returns
- parameters
Implements OpenANN::Layer.
virtual OutputInfo OpenANN::Input::initialize |
( |
std::vector< double * > & |
parameterPointers, |
|
|
std::vector< double * > & |
parameterDerivativePointers |
|
) |
| |
|
virtual |
Fill in the parameter pointers and parameter derivative pointers.
- Parameters
-
parameterPointers | pointers to parameters |
parameterDerivativePointers | pointers to derivatives of parameters |
- Returns
- information about the output of the layer
Implements OpenANN::Layer.
virtual void OpenANN::Input::initializeParameters |
( |
) | |
|
|
virtual |
Initialize the parameters.
This is usually called before each optimization.
Implements OpenANN::Layer.
virtual void OpenANN::Input::updatedParameters |
( |
) | |
|
|
inlinevirtual |
Generate internal parameters from externally visible parameters.
This is usually called after each parameter update.
Implements OpenANN::Layer.
The documentation for this class was generated from the following file: