Weighted-sum machine.
Inheritance:
Public Fields
-
int n_outputs
- Output frame size
-
Trainer** trainers
- The trainers used in the combination
-
MeasurerList** 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_, MeasurerList** trainers_measurers, real* weights_=NULL)
- trainers_measurers is an array which possibly specify the measurers which should be given to the corresponding trainer when training.
Inherited from Machine:
Public Fields
-
Sequence* outputs
Public Methods
-
virtual void forward(Sequence* sequence)
-
virtual void reset()
-
virtual void setDataSet(DataSet* dataset_)
Inherited from Object:
Public Fields
-
Allocator* allocator
Public Methods
-
void addOption(const char* name, int size, void* ptr, const char* help="")
-
void addIOption(const char* name, int* ptr, int init_value, const char* help="")
-
void addROption(const char* name, real* ptr, real init_value, const char* help="")
-
void addBOption(const char* name, bool* ptr, bool init_value, const char* help="")
-
void addOOption(const char* name, Object** ptr, Object* init_value, const char* help="")
-
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)
-
void setOOption(const char* name, Object* option)
-
virtual void loadXFile(XFile* file)
-
virtual void saveXFile(XFile* file)
-
void load(const char* filename)
-
void save(const char* filename)
-
void* operator new(size_t size, Allocator* allocator_=NULL)
-
void* operator new(size_t size, Allocator* allocator_, void* ptr_)
-
void operator delete(void* ptr)
Documentation
Weighted-sum machine.
This class contains a series of Trainers, and its forward method
simply performs the average of the output of each machine associated to
the trainer on the same input.
- int n_outputs
- Output frame size
- Trainer** trainers
- The trainers used in the combination
- MeasurerList** 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_, MeasurerList** trainers_measurers, real* weights_=NULL)
- trainers_measurers is an array which possibly specify the measurers which
should be given to the corresponding trainer when training.
If weights_ isn't specified, weights are setted to zero.
- This class has no child classes.
- Author:
- Ronan Collobert (collober@idiap.ch)
- See Also:
- Bagging
Boosting
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.