class BayesClassifier

A multi class bayes classifier -- maximizes the likelihood of each class separately using a trainer for distribution.

Inheritance:


Public Fields

[more]BayesClassifierMachine* bayesmachine
the bayes machine
[more]int n_classes
the number of different classes
[more]int** classes
all the example indices of each class
[more]int* classes_n
the number of examples per class

Public Methods

[more] BayesClassifier( BayesClassifierMachine* )
you need to define a BayesClassifierMachine to use this class


Inherited from Trainer:

Public Methods

ovirtual void train(DataSet* data_, MeasurerList* measurers)
ovirtual void test(MeasurerList* measurers)
ostatic Allocator* extractMeasurers(MeasurerList* measurers, DataSet* train, DataSet*** datas, Measurer**** meas, int** n_meas, int* n_datas)
ovirtual void loadXFile(XFile* file)
ovirtual void saveXFile(XFile* file)


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

A multi class bayes classifier -- maximizes the likelihood of each class separately using a trainer for distribution. When testing, the predicted class corresponds to the trainer giving the maximum output, weighted by its prior probability.

oBayesClassifierMachine* bayesmachine
the bayes machine

oint n_classes
the number of different classes

oint** classes
all the example indices of each class

oint* classes_n
the number of examples per class

o BayesClassifier( BayesClassifierMachine* )
you need to define a BayesClassifierMachine to use this class


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

Alphabetic index HTML hierarchy of classes or Java



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