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*, DataSet*)
you need to define a BayesClassifierMachine to use this class


Inherited from Trainer:

Public Methods

ovirtual void train(List* measurers)
ovirtual void test(List* measurers)
ovirtual void testExample(List* measurers, int t)
ovirtual void crossValidate(int k_fold, List* train_measurers, List* test_measurers, List* cross_valid_measurers=NULL)
ovirtual void loadFILE(FILE* file)
ovirtual void saveFILE(FILE* file)


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


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*, DataSet*)
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++.