class WeightedMseCriterion

Similar to MseCriterion, but you can put a weight on each example.

Inheritance:


Public Fields

[more]real* weights
Pointer on the weights.

Public Methods

[more] WeightedMseCriterion(DataSet* data_)
With this constructor, the weights are allocated and initializated to 1
[more] WeightedMseCriterion(DataSet* data_, real* weights_)
With this constructor, you provide the weights.


Inherited from Criterion:

Public Fields

oDataSet* data

Public Methods

ovirtual void setDataSet(DataSet* data_)


Inherited from GradientMachine:

Public Fields

obool is_free
oList* params
oList* der_params
oint n_params
oreal* beta

Public Methods

ovirtual void init()
ovirtual int numberOfParams()
ovirtual void iterInitialize()
ovirtual void backward(List* inputs, real* alpha)
ovirtual void allocateMemory()
ovirtual void freeMemory()
ovirtual void loadFILE(FILE* file)
ovirtual void saveFILE(FILE* file)


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

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)
ovoid load(const char* filename)
ovoid save(const char* filename)


Documentation

Similar to MseCriterion, but you can put a weight on each example.

oreal* weights
Pointer on the weights. You can modify the weights when you want.

The length of weights is the n_real_examples of data.

o WeightedMseCriterion(DataSet* data_)
With this constructor, the weights are allocated and initializated to 1

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