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

oint n_inputs
oint n_outputs
oParameters* params
oParameters* der_params
oSequence* beta

Public Methods

ovirtual void iterInitialize()
ovirtual void forward(Sequence* inputs)
ovirtual void backward(Sequence* inputs, Sequence* alpha)
ovirtual void setPartialBackprop(bool flag=true)
ovirtual void frameForward(int t, real* f_inputs, real* f_outputs)
ovirtual void frameBackward(int t, real* f_inputs, real* beta_, real* f_outputs, real* alpha_)
ovirtual void loadXFile(XFile* file)
ovirtual void saveXFile(XFile* file)


Inherited from Machine:

Public Fields

oSequence* outputs

Public Methods

ovirtual void reset()


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

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

Options:
"average frame size" bool divided by the frame size [true]

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@idiap.ch)

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.