#include <train.h>


The regularization factor can be set with the TIKHONOV_FACTOR parameter. If TIKHONOV_FACTOR=0, one gets the unregularized least squares solution. The higher the parameter, the stronger the smoothing/regularization effect.
For ridge regression with ESNs see:
Public Member Functions | |
| TrainRidgeReg (ESN< T > *esn) | |
| virtual | ~TrainRidgeReg () |
class TrainRidgeReg Implementation | |
| virtual void | train (const typename ESN< T >::DEMatrix &in, const typename ESN< T >::DEMatrix &out, int washout) throw (AUExcept) |
Protected Member Functions | |
| void | clearData () |
class TrainBase Implementation | |
| void | checkParams (const typename ESN< T >::DEMatrix &in, const typename ESN< T >::DEMatrix &out, int washout) throw (AUExcept) |
| void | collectStates (const typename ESN< T >::DEMatrix &in, const typename ESN< T >::DEMatrix &out, int washout) |
| void | squareStates () |
Protected Attributes | |
| ESN< T > * | esn_ |
| ESN< T >::DEMatrix | M |
| ESN< T >::DEMatrix | O |
| aureservoir::TrainRidgeReg< T >::TrainRidgeReg | ( | ESN< T > * | esn | ) | [inline] |
| virtual aureservoir::TrainRidgeReg< T >::~TrainRidgeReg | ( | ) | [inline, virtual] |
| void aureservoir::TrainBase< T >::checkParams | ( | const typename ESN< T >::DEMatrix & | in, | |
| const typename ESN< T >::DEMatrix & | out, | |||
| int | washout | |||
| ) | throw (AUExcept) [inline, protected, inherited] |
check parameters
| void aureservoir::TrainBase< T >::collectStates | ( | const typename ESN< T >::DEMatrix & | in, | |
| const typename ESN< T >::DEMatrix & | out, | |||
| int | washout | |||
| ) | [inline, protected, inherited] |
collect network states with simulation algorithm
| void aureservoir::TrainBase< T >::squareStates | ( | ) | [inline, protected, inherited] |
squares states for SIM_SQUARE
| void aureservoir::TrainBase< T >::clearData | ( | ) | [inline, protected, inherited] |
frees allocated data for M and O
ESN<T>* aureservoir::TrainBase< T >::esn_ [protected, inherited] |
reference to the data of the network
ESN<T>::DEMatrix aureservoir::TrainBase< T >::M [protected, inherited] |
matrix for network states and inputs over all timesteps
ESN<T>::DEMatrix aureservoir::TrainBase< T >::O [protected, inherited] |
matrix for outputs over all timesteps
1.5.3