Weighted-sum machine.
Inheritance:
Public Fields
-
Trainer** trainers
- The trainers used in the combination
-
List** trainers_measurers
- The corresponding measurers
-
int n_trainers
- The number of trainers in the combination
-
int n_trainers_trained
- The number of trainers that have been already trained.
-
real* weights
- The weights of the combination
-
bool weights_is_allocated
- True if the weights aren't given by the user, false otherwise
Public Methods
-
WeightedSumMachine(Trainer** trainer_, int n_trainers_, List** trainers_measurers, real* weights_=NULL)
Inherited from Machine:
Public Fields
-
int n_inputs
-
int n_outputs
-
List* outputs
Public Methods
-
virtual void forward(List* inputs)
-
virtual void reset()
Inherited from Object:
Public Methods
-
virtual void init()
-
void addOption(const char* name, int size, void* ptr, const char* help="", bool is_allowed_after_init=false)
-
void addIOption(const char* name, int* ptr, int init_value, const char* help="", bool is_allowed_after_init=false)
-
void addROption(const char* name, real* ptr, real init_value, const char* help="", bool is_allowed_after_init=false)
-
void addBOption(const char* name, bool* ptr, bool init_value, const char* help="", bool is_allowed_after_init=false)
-
void setOption(const char* name, void* ptr)
-
void setIOption(const char* name, int option)
-
void setROption(const char* name, real option)
-
void setBOption(const char* name, bool option)
-
virtual void loadFILE(FILE* file)
-
virtual void saveFILE(FILE* file)
-
void load(const char* filename)
-
void save(const char* filename)
Documentation
Weighted-sum machine.
This class contains a series of Trainers, and its forward method
simply performs the average of the output of each trainer on the same input.
Trainer** trainers
- The trainers used in the combination
List** trainers_measurers
- The corresponding measurers
int n_trainers
- The number of trainers in the combination
int n_trainers_trained
- The number of trainers that have been already trained.
After the initialization, it's zero.
Note that the forward method depends on this value.
(only the first n_trainers_trained trainers are used)
real* weights
- The weights of the combination
bool weights_is_allocated
- True if the weights aren't given by the user, false otherwise
WeightedSumMachine(Trainer** trainer_, int n_trainers_, List** trainers_measurers, real* weights_=NULL)
- This class has no child classes.
- Author:
- Ronan Collobert (collober@iro.umontreal.ca)
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.