class WeightedSumMachine

Weighted-sum machine.

Inheritance:


Public Fields

[more]int n_outputs
Output frame size
[more]Trainer** trainers
The trainers used in the combination
[more]MeasurerList** trainers_measurers
The corresponding measurers
[more]int n_trainers
The number of trainers in the combination
[more]int n_trainers_trained
The number of trainers that have been already trained.
[more]real* weights
The weights of the combination
[more]bool weights_is_allocated
True if the weights aren't given by the user, false otherwise

Public Methods

[more] 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

oSequence* outputs

Public Methods

ovirtual void forward(Sequence* sequence)
ovirtual void reset()
ovirtual void setDataSet(DataSet* dataset_)


Inherited from Object:

Public Fields

oAllocator* allocator

Public Methods

ovoid addOption(const char* name, int size, void* ptr, const char* help="")
ovoid addIOption(const char* name, int* ptr, int init_value, const char* help="")
ovoid addROption(const char* name, real* ptr, real init_value, const char* help="")
ovoid addBOption(const char* name, bool* ptr, bool init_value, const char* help="")
ovoid addOOption(const char* name, Object** ptr, Object* init_value, const char* help="")
ovoid setOption(const char* name, void* ptr)
ovoid setIOption(const char* name, int option)
ovoid setROption(const char* name, real option)
ovoid setBOption(const char* name, bool option)
ovoid setOOption(const char* name, Object* option)
ovirtual void loadXFile(XFile* file)
ovirtual void saveXFile(XFile* file)
ovoid load(const char* filename)
ovoid save(const char* filename)
ovoid* operator new(size_t size, Allocator* allocator_=NULL)
ovoid* operator new(size_t size, Allocator* allocator_, void* ptr_)
ovoid 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.

oint n_outputs
Output frame size

oTrainer** trainers
The trainers used in the combination

oMeasurerList** trainers_measurers
The corresponding measurers

oint n_trainers
The number of trainers in the combination

oint 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)

oreal* weights
The weights of the combination

obool weights_is_allocated
True if the weights aren't given by the user, false otherwise

o 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++.