Definition at line 20 of file LinearHMM.h.
CLinearHMM::CLinearHMM | ( | CStringFeatures< WORD > * | f | ) |
constructor
p_num_features | number of features | |
p_num_symbols | number of symbols in features |
Definition at line 26 of file LinearHMM.cpp.
CLinearHMM::~CLinearHMM | ( | ) |
Definition at line 34 of file LinearHMM.cpp.
bool CLinearHMM::train | ( | ) | [virtual] |
train distribution
Implements CDistribution.
Definition at line 40 of file LinearHMM.cpp.
alternative train distribution
indizes | indices | |
num_indizes | number of indices | |
pseudo_count | pseudo count |
Definition at line 87 of file LinearHMM.cpp.
get logarithm of one example's likelihood
vector | the example | |
len | length of vector |
Definition at line 137 of file LinearHMM.cpp.
get one example's likelihood
vector | the example | |
len | length of vector |
Definition at line 159 of file LinearHMM.cpp.
get logarithm of one example's likelihood
num_example | which example |
Implements CDistribution.
Definition at line 147 of file LinearHMM.cpp.
get logarithm of one example's derivative's likelihood
num_param | which example's param | |
num_example | which example |
Implements CDistribution.
Definition at line 169 of file LinearHMM.cpp.
obsolete get logarithm of one example's derivative's likelihood
obs | observation | |
pos | position |
Definition at line 89 of file LinearHMM.h.
obsolete get one example's derivative
vector | vector | |
len | length | |
pos | position |
Definition at line 100 of file LinearHMM.h.
virtual INT CLinearHMM::get_sequence_length | ( | ) | [virtual] |
get sequence length of each example
Definition at line 110 of file LinearHMM.h.
virtual INT CLinearHMM::get_num_symbols | ( | ) | [virtual] |
get number of symbols in examples
Definition at line 116 of file LinearHMM.h.
virtual INT CLinearHMM::get_num_model_parameters | ( | ) | [virtual] |
get number of model parameters
Implements CDistribution.
Definition at line 122 of file LinearHMM.h.
get positional log parameter
obs | observation | |
position | position |
Definition at line 130 of file LinearHMM.h.
get logarithm of given model parameter
num_param | which param |
Implements CDistribution.
Definition at line 140 of file LinearHMM.h.
get logarithm of all transition probs
dst | where logarithm of transition probs will be stored | |
num | where number of logarithm of transition probs will be stored |
Definition at line 214 of file LinearHMM.cpp.
set logarithm of all transition probs
src | new logarithms of transition probs | |
num | number of logarithms of transition probs |
Definition at line 224 of file LinearHMM.cpp.
get all transition probs
dst | where transition probs will be stored | |
num | where number of transition probs will be stored |
Definition at line 184 of file LinearHMM.cpp.
set all transition probs
src | new transition probs | |
num | number of transition probs |
Definition at line 194 of file LinearHMM.cpp.
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] |
INT CLinearHMM::sequence_length [protected] |
examples' sequence length
Definition at line 182 of file LinearHMM.h.
INT CLinearHMM::num_symbols [protected] |
number of symbols in examples
Definition at line 184 of file LinearHMM.h.
INT CLinearHMM::num_params [protected] |
number of parameters
Definition at line 186 of file LinearHMM.h.
DREAL* CLinearHMM::transition_probs [protected] |
transition probs
Definition at line 188 of file LinearHMM.h.
DREAL* CLinearHMM::log_transition_probs [protected] |
logarithm of transition probs
Definition at line 190 of file LinearHMM.h.
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.