Implements multinomial model. More...
#include <model_multinom.hpp>
Public Types | |
typedef boost::shared_ptr < DATAACCESSOR > | PDataAccessor |
typedef boost::shared_ptr< SUBSET > | PSubset |
Public Member Functions | |
Model_Multinomial (const Model_Multinomial &mm) | |
virtual void | learn (PDataAccessor da) |
virtual void | learn (PDataAccessor da, const PSubset sub) |
void | narrow_to (const PSubset sub) |
void | denarrow () |
void | compute_theta () |
void | compute_MI () |
void | compute_IB () |
DIMTYPE | get_n_max () const |
DIMTYPE | get_n () const |
DIMTYPE | get_d () const |
DIMTYPE | get_classes () const |
REALTYPE | get_doc_avg_length () const |
REALTYPE | get_Pc (const DIMTYPE c) const |
Protected Member Functions | |
const boost::scoped_array < REALTYPE > & | get_theta () const |
const boost::scoped_array < REALTYPE > & | get_IB () const |
const boost::scoped_array < REALTYPE > & | get_MI () const |
void | compute_Nsuminclass (PDataAccessor da) |
Protected Attributes | |
DIMTYPE | _classes |
DIMTYPE | _n_max |
DIMTYPE | _n |
boost::scoped_array< DATATYPE > | _Nsuminclass |
boost::scoped_array< REALTYPE > | _theta |
boost::scoped_array< REALTYPE > | _Pc |
boost::scoped_array< REALTYPE > | _Pc_d |
boost::scoped_array< REALTYPE > | _Pv |
boost::scoped_array< REALTYPE > | _MI |
boost::scoped_array< REALTYPE > | _IB |
DIMTYPE | _d |
boost::scoped_array< DIMTYPE > | _index |
maps feature subset indexes to raw (full set) feature indexes, used for narrow()ing | |
IDXTYPE | _allpatterns |
REALTYPE | _doc_avg_length |
boost::scoped_array< DIMTYPE > | _learn_index |
Friends | |
class | Criterion_Multinomial_Bhattacharyya |
class | Classifier_Multinomial_NaiveBayes |
Implements multinomial model.