|
Public Member Functions |
| FFNet (const Vector< int > &_topo, const Vector< std::string > &functions) |
| FFNet (FFNet &net) |
| FFNet (const Vector< int > &_topo, const Vector< std::string > &functions, std::vector< float * > &tin, std::vector< float * > &tout) |
void | init (const Vector< std::string > &functions) |
void | setupLayersAfterRead () |
float * | calc (const float *input, float *value, float *deriv=NULL) |
void | learn (float *input, float *output, double *gradient, double *err=NULL, float *calc_output=NULL) |
void | calcGradient (std::vector< float * > &tin, std::vector< float * > &tout, Array< float > weights, Array< double > &gradient, double &err) |
void | weightedLearn (float *input, float *output, float *learnWeights, double *gradient, double *err=NULL, float *calc_output=NULL) |
void | weightedCalcGradient (std::vector< float * > &tin, std::vector< float * > &tout, std::vector< float * > &learnWeights, Array< float > weights, Array< double > &gradient, double &err) |
float | totalError (std::vector< float * > tin, std::vector< float * > tout) |
int | getNbWeights () |
int | getNbNeurons () |
const Vector< int > & | getTopo () |
const Vector< RCPtr< FFLayer > > & | getLayers () |
const float * | getWeights () |
void | setWeights (float *ptr) |
void | setDerivOffset (float d) |
void | printOn (std::ostream &out) const |
void | readFrom (std::istream &in) |
Protected Attributes |
Vector< int > | topo |
Vector< RCPtr< FFLayer > > | layers |
float * | weights |
int | nbNeurons |
int | nbWeights |