Public Member Functions | Protected Member Functions | Protected Attributes

CGUIHMM Class Reference


Detailed Description

UI HMM (Hidden Markov Model).

Definition at line 25 of file GUIHMM.h.

Inheritance diagram for CGUIHMM:
Inheritance graph
[legend]

List of all members.

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)
CHMMget_pos ()
CHMMget_neg ()
CHMMget_test ()
void set_current (CHMM *h)
CHMMget_current ()
float64_t get_pseudo ()
CLabelsclassify (CLabels *output=NULL)
float64_t classify_example (int32_t idx)
CLabelsone_class_classify (CLabels *output=NULL)
CLabelslinear_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

CHMMworking
CHMMpos
CHMMneg
CHMMtest
float64_t PSEUDO
int32_t M
CSGInterface * ui

Constructor & Destructor Documentation

CGUIHMM (  ) 

constructor

Definition at line 29 of file GUIHMM.h.

CGUIHMM ( CSGInterface *  interface  ) 

constructor

Parameters:
interface 

Definition at line 24 of file GUIHMM.cpp.

~CGUIHMM (  ) 

destructor

Definition at line 37 of file GUIHMM.cpp.


Member Function Documentation

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.

CLabels * classify ( CLabels output = NULL  ) 

classify

Parameters:
output 

Definition at line 147 of file GUIHMM.cpp.

float64_t classify_example ( int32_t  idx  ) 

classify example

Parameters:
idx 

Definition at line 171 of file GUIHMM.cpp.

bool converge ( float64_t  x,
float64_t  y 
) [protected]

converge

Parameters:
x 
y 
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 
)

entropy

Parameters:
values 
len 

Definition at line 597 of file GUIHMM.cpp.

CHMM* get_current (  ) 

get current

Definition at line 130 of file GUIHMM.h.

virtual const char* get_name ( void   )  const [virtual]
Returns:
object name

Implements CSGObject.

Definition at line 156 of file GUIHMM.h.

CHMM* get_neg (  ) 

get neg

Definition at line 122 of file GUIHMM.h.

CHMM* get_pos (  ) 

get pos

Definition at line 120 of file GUIHMM.h.

float64_t get_pseudo (  ) 

get pseudo

Definition at line 132 of file GUIHMM.h.

CHMM* get_test (  ) 

get test

Definition at line 124 of file GUIHMM.h.

bool likelihood (  ) 

HMM likelihood

Definition at line 506 of file GUIHMM.cpp.

CLabels * linear_one_class_classify ( CLabels output = NULL  ) 

linear one class classify

Parameters:
output 

Definition at line 211 of file GUIHMM.cpp.

bool linear_train ( char  align = 'l'  ) 

linear train

Parameters:
align 

Definition at line 119 of file GUIHMM.cpp.

bool linear_train_from_file ( char *  param  ) 

linear train from file

Parameters:
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 
)

load definitions

Parameters:
filename 
do_init 

Definition at line 414 of file GUIHMM.cpp.

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  ) 

normalize

Parameters:
keep_dead_states 

Definition at line 553 of file GUIHMM.cpp.

CLabels * one_class_classify ( CLabels output = NULL  ) 

one class classify

Parameters:
output 

Definition at line 189 of file GUIHMM.cpp.

float64_t one_class_classify_example ( int32_t  idx  ) 

one class classfiy example

Parameters:
idx 

Definition at line 234 of file GUIHMM.cpp.

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 
)

relative entropy

Parameters:
values 
len 

Definition at line 562 of file GUIHMM.cpp.

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 
)

save HMM likelihood to file

..future

Definition at line 436 of file GUIHMM.cpp.

bool save_path ( char *  filename,
bool  is_binary = false 
)

save path

Parameters:
filename 
is_binary 

..future

Definition at line 465 of file GUIHMM.cpp.

void set_current ( CHMM h  ) 

set current

Parameters:
h 

Definition at line 128 of file GUIHMM.h.

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

Parameters:
param 
bool set_num_hmm_tables ( char *  param  ) 

set num hmm tables

Parameters:
param 
bool set_pseudo ( float64_t  pseudo  ) 

set HMM pseudo

Definition at line 316 of file GUIHMM.cpp.

void switch_model ( CHMM **  m1,
CHMM **  m2 
) [protected]

switch model

Parameters:
m1 
m2 
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.


Member Data Documentation

int32_t M [protected]

M

Definition at line 183 of file GUIHMM.h.

CHMM* neg [protected]

neg

Definition at line 176 of file GUIHMM.h.

CHMM* pos [protected]

pos

Definition at line 174 of file GUIHMM.h.

float64_t PSEUDO [protected]

pseudo

Definition at line 181 of file GUIHMM.h.

CHMM* test [protected]

test

Definition at line 178 of file GUIHMM.h.

CSGInterface* ui [protected]

ui

Definition at line 187 of file GUIHMM.h.

CHMM* working [protected]

working

Definition at line 171 of file GUIHMM.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation