11 #ifndef GAUSSIANNAIVEBAYES_H_
12 #define GAUSSIANNAIVEBAYES_H_
100 virtual inline const char*
get_name()
const {
return "GaussianNaiveBayes"; };
SGVector< float64_t > m_label_prob
a priori probabilities of labels
The class Labels models labels, i.e. class assignments of objects.
virtual ~CGaussianNaiveBayes()
Features that support dot products among other operations.
A generic learning machine interface.
SGVector< float64_t > m_rates
label rates
virtual CLabels * apply()
int32_t m_num_classes
number of different classes (labels)
SGVector< float64_t > m_means
means for normal distributions of features
int32_t m_min_label
minimal label
int32_t m_dim
dimensionality of feature space
float64_t normal_exp(float64_t x, int32_t l_idx, int32_t f_idx)
virtual const char * get_name() const
virtual EClassifierType get_classifier_type()
virtual void set_features(CDotFeatures *features)
Class GaussianNaiveBayes, a Gaussian Naive Bayes classifier.
virtual CDotFeatures * get_features()
virtual bool train(CFeatures *data=NULL)
The class Features is the base class of all feature objects.
static float64_t exp(float64_t x)
SGVector< float64_t > m_variances
variances for normal distributions of features
CDotFeatures * m_features
features for training or classifying