Definition at line 20 of file GHMM.h.
Public Member Functions | |
CGHMM () | |
~CGHMM () | |
virtual bool | train () |
virtual INT | get_num_model_parameters () |
virtual DREAL | get_log_model_parameter (INT param_num) |
virtual DREAL | get_log_derivative (INT param_num, INT num_example) |
virtual DREAL | get_log_likelihood_example (INT num_example) |
virtual INT | get_num_relevant_model_parameters () |
virtual DREAL | get_log_likelihood_sample () |
virtual void | get_log_likelihood (DREAL **dst, INT *num) |
virtual DREAL | get_model_parameter (INT num_param) |
virtual DREAL | get_derivative (INT num_param, INT num_example) |
virtual DREAL | get_likelihood_example (INT num_example) |
virtual void | set_features (CFeatures *f) |
virtual CFeatures * | get_features () |
virtual void | set_pseudo_count (DREAL pseudo) |
virtual DREAL | get_pseudo_count () |
Static Public Attributes | |
static CParallel | parallel |
static CIO | io |
static CVersion | version |
Protected Attributes | |
CFeatures * | features |
DREAL | pseudo_count |
bool CGHMM::train | ( | ) | [virtual] |
INT CGHMM::get_num_model_parameters | ( | ) | [virtual] |
get logarithm of given model parameter
param_num | which param |
Implements CDistribution.
get logarithm of one example's derivative's likelihood
param_num | which example's param | |
num_example | which example |
Implements CDistribution.
get logarithm of one example's likelihood
num_example | which example |
Implements CDistribution.
INT CDistribution::get_num_relevant_model_parameters | ( | ) | [virtual, inherited] |
get number of parameters in model that are relevant, i.e. > ALMOST_NEG_INFTY
Definition at line 48 of file Distribution.cpp.
DREAL CDistribution::get_log_likelihood_sample | ( | ) | [virtual, inherited] |
compute log likelihood for whole sample
Definition at line 24 of file Distribution.cpp.
compute log likelihood for each example
dst | where likelihood will be stored | |
num | where number of likelihoods will be stored |
Definition at line 35 of file Distribution.cpp.
get model parameter
num_param | which param |
Definition at line 94 of file Distribution.h.
get derivative of likelihood function
num_param | which param | |
num_example | which example |
Definition at line 105 of file Distribution.h.
compute likelihood for example
num_example | which example |
Definition at line 115 of file Distribution.h.
virtual void CDistribution::set_features | ( | CFeatures * | f | ) | [virtual, inherited] |
set feature vectors
f | new feature vectors |
Definition at line 124 of file Distribution.h.
virtual CFeatures* CDistribution::get_features | ( | ) | [virtual, inherited] |
virtual void CDistribution::set_pseudo_count | ( | DREAL | pseudo | ) | [virtual, inherited] |
virtual DREAL CDistribution::get_pseudo_count | ( | ) | [virtual, inherited] |
CFeatures* CDistribution::features [protected, inherited] |
feature vectors
Definition at line 146 of file Distribution.h.
DREAL CDistribution::pseudo_count [protected, inherited] |
pseudo count
Definition at line 148 of file Distribution.h.
CParallel CSGObject::parallel [static, inherited] |
Definition at line 105 of file SGObject.h.
CIO CSGObject::io [static, inherited] |
Definition at line 106 of file SGObject.h.
CVersion CSGObject::version [static, inherited] |
Definition at line 107 of file SGObject.h.