class ParzenMachine

This machine implements the Parzen Window estimator.

Inheritance:


Public Fields

[more]real var
the variance used
[more]DataSet* data
The dataset that contains the training set
[more]int* real_examples
the indices of the training examples
[more]real denominator
keep the denominator

Public Methods

[more] ParzenMachine(DataSet* data_, real var_)
[more]virtual void setVar(real var_)
change the value of var


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

This machine implements the Parzen Window estimator. Given a dataset (in the constructor), the forward method returns for a given input the average of the outputs of the training set weighted by a Gaussian kernel distance:

The only parameter var is given in the constructor.

oreal var
the variance used

oDataSet* data
The dataset that contains the training set

oint* real_examples
the indices of the training examples

oreal denominator
keep the denominator

o ParzenMachine(DataSet* data_, real var_)

ovirtual void setVar(real var_)
change the value of var


This class has no child classes.
Author:
Samy Bengio (bengio@idiap.ch)

Alphabetic index HTML hierarchy of classes or Java



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