Similar to MseCriterion, but you can put a weight on each example.
Inheritance:
Public Fields
-
real* weights
- Pointer on the weights.
Public Methods
-
WeightedMseCriterion(DataSet* data_)
- With this constructor, the weights are allocated and initializated to 1
-
WeightedMseCriterion(DataSet* data_, real* weights_)
- With this constructor, you provide the weights.
Public Fields
-
DataSet* data
Public Methods
-
virtual void setDataSet(DataSet* data_)
Public Fields
-
bool is_free
-
List* params
-
List* der_params
-
int n_params
-
real* beta
Public Methods
-
virtual void init()
-
virtual int numberOfParams()
-
virtual void iterInitialize()
-
virtual void backward(List* inputs, real* alpha)
-
virtual void allocateMemory()
-
virtual void freeMemory()
-
virtual void loadFILE(FILE* file)
-
virtual void saveFILE(FILE* file)
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
-
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)
-
void load(const char* filename)
-
void save(const char* filename)
Documentation
Similar to MseCriterion, but you
can put a weight on each example.
real* weights
- Pointer on the weights.
You can modify the weights when you want.
The length of weights is the
n_real_examples of data.
WeightedMseCriterion(DataSet* data_)
- With this constructor, the weights are allocated
and initializated to 1
WeightedMseCriterion(DataSet* data_, real* weights_)
- With this constructor, you provide the weights.
The length of weights must be the
n_real_examples of data.
- 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++.