BALL::QSAR::BayesModel Class Reference

#include <BALL/QSAR/bayesModel.h>

Inheritance diagram for BALL::QSAR::BayesModel:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 BayesModel (const QSARData &q)
virtual bool isTrained ()=0
virtual vector< doublecalculateProbabilities (int activitiy_index, int feature_index, double feature_value)=0
virtual int getNoResponseVariables ()=0

Protected Attributes

double min_prob_diff_
double undef_act_class_id_

Detailed Description

interface class for all Bayes classification models

Definition at line 38 of file bayesModel.h.


Constructor & Destructor Documentation

BALL::QSAR::BayesModel::BayesModel ( const QSARData q  ) 

Member Function Documentation

virtual vector<double> BALL::QSAR::BayesModel::calculateProbabilities ( int  activitiy_index,
int  feature_index,
double  feature_value 
) [pure virtual]

calculate the probability for the specified feature to assume the given value for each class

Returns:
a probability for each class

Implemented in BALL::QSAR::NBModel, and BALL::QSAR::SNBModel.

virtual int BALL::QSAR::BayesModel::getNoResponseVariables (  )  [pure virtual]

returns the number of response variables for which this model has been trained

Implemented in BALL::QSAR::NBModel, and BALL::QSAR::SNBModel.

virtual bool BALL::QSAR::BayesModel::isTrained (  )  [pure virtual]

Member Data Documentation

the minimal desired difference between the predicted class and the second best class. If the difference is smaller than this value, undef_act_class_id_ should be used instead.

Definition at line 56 of file bayesModel.h.

the class_id that is to be assigned, if no class could be savely predicted, if difference between best and second best potential class is smaller than min_prob_diff_

Definition at line 59 of file bayesModel.h.

Generated by  doxygen 1.6.3