class WeightedSumMachine

Weighted-sum machine.

Inheritance:


Public Fields

[more]Trainer** trainers
The trainers used in the combination
[more]List** 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_, List** trainers_measurers, real* weights_=NULL)


Inherited from Machine:

Public Fields

oint n_inputs
oint n_outputs
oList* outputs

Public Methods

ovirtual void forward(List* inputs)
ovirtual void reset()


Inherited from Object:

Public Methods

ovirtual void init()
ovoid addOption(const char* name, int size, void* ptr, const char* help="", bool is_allowed_after_init=false)
ovoid addIOption(const char* name, int* ptr, int init_value, const char* help="", bool is_allowed_after_init=false)
ovoid addROption(const char* name, real* ptr, real init_value, const char* help="", bool is_allowed_after_init=false)
ovoid addBOption(const char* name, bool* ptr, bool init_value, const char* help="", bool is_allowed_after_init=false)
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)
ovirtual void loadFILE(FILE* file)
ovirtual void saveFILE(FILE* file)
ovoid load(const char* filename)
ovoid 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.

oTrainer** trainers
The trainers used in the combination

oList** 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_, 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++.