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
[more]int n_outputs
the size of the output vector
[more]int n_inputs
the size of the input vector

Public Methods

[more] ParzenMachine(int n_inputs_, int n_outputs_, real var_)
[more]virtual void setVar(real var_)
change the value of var


Inherited from Machine:

Public Fields

oSequence* outputs

Public Methods

ovirtual void forward(Sequence* sequence)
ovirtual void reset()
ovirtual void setDataSet(DataSet* dataset_)


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)
ovirtual void loadXFile(XFile* file)
ovirtual void saveXFile(XFile* file)
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

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

oint n_outputs
the size of the output vector

oint n_inputs
the size of the input vector

o ParzenMachine(int n_inputs_, int n_outputs_, 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++.