UI HMM (Hidden Markov Model).
Definition at line 25 of file GUIHMM.h.

Public Member Functions | |
| CGUIHMM () | |
| CGUIHMM (CSGInterface *interface) | |
| ~CGUIHMM () | |
| bool | new_hmm (int32_t n, int32_t m) |
| bool | load (char *filename) |
| bool | save (char *filename, bool is_binary=false) |
| bool | set_num_hmm_tables (char *param) |
| bool | baum_welch_train () |
| bool | baum_welch_trans_train () |
| bool | baum_welch_train_defined () |
| bool | viterbi_train_defined () |
| bool | viterbi_train () |
| bool | linear_train (char align='l') |
| bool | linear_train_from_file (char *param) |
| bool | append_model (char *filename, int32_t base1=-1, int32_t base2=-1) |
| bool | add_states (int32_t num_states=1, float64_t value=0) |
| bool | set_hmm_as (char *target) |
| bool | set_pseudo (float64_t pseudo) |
| bool | convergence_criteria (int32_t num_iterations=100, float64_t epsilon=0.001) |
| bool | output_hmm () |
| bool | output_hmm_defined () |
| bool | best_path (int32_t from=0, int32_t to=100) |
| bool | normalize (bool keep_dead_states=false) |
| bool | save_path (char *filename, bool is_binary=false) |
| bool | save_likelihood (char *filename, bool is_binary=false) |
| bool | load_definitions (char *filename, bool do_init=false) |
| bool | set_max_dim (char *param) |
| bool | likelihood () |
| bool | chop (float64_t value) |
| bool | relative_entropy (float64_t *&values, int32_t &len) |
| bool | entropy (float64_t *&values, int32_t &len) |
| bool | permutation_entropy (int32_t width=0, int32_t seq_num=-1) |
| CHMM * | get_pos () |
| CHMM * | get_neg () |
| CHMM * | get_test () |
| void | set_current (CHMM *h) |
| CHMM * | get_current () |
| float64_t | get_pseudo () |
| CLabels * | classify (CLabels *output=NULL) |
| float64_t | classify_example (int32_t idx) |
| CLabels * | one_class_classify (CLabels *output=NULL) |
| CLabels * | linear_one_class_classify (CLabels *output=NULL) |
| float64_t | one_class_classify_example (int32_t idx) |
| virtual const char * | get_name () const |
Protected Member Functions | |
| bool | converge (float64_t x, float64_t y) |
| void | switch_model (CHMM **m1, CHMM **m2) |
Protected Attributes | |
| CHMM * | working |
| CHMM * | pos |
| CHMM * | neg |
| CHMM * | test |
| float64_t | PSEUDO |
| int32_t | M |
| CSGInterface * | ui |
| CGUIHMM | ( | CSGInterface * | interface | ) |
| ~CGUIHMM | ( | ) |
destructor
Definition at line 37 of file GUIHMM.cpp.
| bool add_states | ( | int32_t | num_states = 1, |
|
| float64_t | value = 0 | |||
| ) |
add states to HMM
Definition at line 306 of file GUIHMM.cpp.
| bool append_model | ( | char * | filename, | |
| int32_t | base1 = -1, |
|||
| int32_t | base2 = -1 | |||
| ) |
append HMM/model for CmdlineInterface
Definition at line 252 of file GUIHMM.cpp.
| bool baum_welch_train | ( | ) |
train Baum-Welch
Definition at line 50 of file GUIHMM.cpp.
| bool baum_welch_train_defined | ( | ) |
train Baum-Welch defined
Definition at line 89 of file GUIHMM.cpp.
| bool baum_welch_trans_train | ( | ) |
train Baum-Welch trans
Definition at line 71 of file GUIHMM.cpp.
| bool best_path | ( | int32_t | from = 0, |
|
| int32_t | to = 100 | |||
| ) |
print best path
Definition at line 533 of file GUIHMM.cpp.
| bool chop | ( | float64_t | value | ) |
chop HMM
Definition at line 497 of file GUIHMM.cpp.
| float64_t classify_example | ( | int32_t | idx | ) |
| bool convergence_criteria | ( | int32_t | num_iterations = 100, |
|
| float64_t | epsilon = 0.001 | |||
| ) |
set convergence criteria
Definition at line 323 of file GUIHMM.cpp.
| bool entropy | ( | float64_t *& | values, | |
| int32_t & | len | |||
| ) |
| virtual const char* get_name | ( | ) | const [virtual] |
| bool likelihood | ( | ) |
HMM likelihood
Definition at line 506 of file GUIHMM.cpp.
| bool linear_train | ( | char | align = 'l' |
) |
| bool linear_train_from_file | ( | char * | param | ) |
linear train from file
| param |
| bool load | ( | char * | filename | ) |
load HMM from file
Definition at line 364 of file GUIHMM.cpp.
| bool load_definitions | ( | char * | filename, | |
| bool | do_init = false | |||
| ) |
| bool new_hmm | ( | int32_t | n, | |
| int32_t | m | |||
| ) |
create new HMM
Definition at line 42 of file GUIHMM.cpp.
| bool normalize | ( | bool | keep_dead_states = false |
) |
| float64_t one_class_classify_example | ( | int32_t | idx | ) |
| bool output_hmm | ( | ) |
output HMM
Definition at line 515 of file GUIHMM.cpp.
| bool output_hmm_defined | ( | ) |
output HMM defined
Definition at line 524 of file GUIHMM.cpp.
| bool permutation_entropy | ( | int32_t | width = 0, |
|
| int32_t | seq_num = -1 | |||
| ) |
define permutation entropy
Definition at line 622 of file GUIHMM.cpp.
| bool relative_entropy | ( | float64_t *& | values, | |
| int32_t & | len | |||
| ) |
| bool save | ( | char * | filename, | |
| bool | is_binary = false | |||
| ) |
save HMM to file
Definition at line 387 of file GUIHMM.cpp.
| bool save_likelihood | ( | char * | filename, | |
| bool | is_binary = false | |||
| ) |
| bool save_path | ( | char * | filename, | |
| bool | is_binary = false | |||
| ) |
| bool set_hmm_as | ( | char * | target | ) |
set HMM as POS/NEG/TEST
Definition at line 335 of file GUIHMM.cpp.
| bool set_max_dim | ( | char * | param | ) |
set max dim
| param |
| bool set_num_hmm_tables | ( | char * | param | ) |
set num hmm tables
| param |
| bool set_pseudo | ( | float64_t | pseudo | ) |
set HMM pseudo
Definition at line 316 of file GUIHMM.cpp.
| bool viterbi_train | ( | ) |
train Viterbi
Definition at line 99 of file GUIHMM.cpp.
| bool viterbi_train_defined | ( | ) |
train Viterbi defined
Definition at line 109 of file GUIHMM.cpp.