SHOGUN  v1.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
List of all members | Public Member Functions
CGHMM Class Reference

Detailed Description

class GHMM - this class is non-functional and was meant to implement a Generalize Hidden Markov Model (aka Semi Hidden Markov HMM).

Definition at line 22 of file GHMM.h.

Inheritance diagram for CGHMM:
Inheritance graph
[legend]

Public Member Functions

 CGHMM ()
virtual ~CGHMM ()
virtual bool train (CFeatures *data=NULL)
virtual int32_t get_num_model_parameters ()
virtual float64_t get_log_model_parameter (int32_t param_num)
virtual float64_t get_log_derivative (int32_t param_num, int32_t num_example)
virtual float64_t get_log_likelihood_example (int32_t num_example)
virtual const char * get_name () const
- Public Member Functions inherited from CDistribution
 CDistribution ()
virtual ~CDistribution ()
virtual int32_t get_num_relevant_model_parameters ()
virtual float64_t get_log_likelihood_sample ()
virtual SGVector< float64_tget_log_likelihood ()
virtual float64_t get_model_parameter (int32_t num_param)
virtual float64_t get_derivative (int32_t num_param, int32_t num_example)
virtual float64_t get_likelihood_example (int32_t num_example)
virtual void set_features (CFeatures *f)
virtual CFeaturesget_features ()
virtual void set_pseudo_count (float64_t pseudo)
virtual float64_t get_pseudo_count ()
- Public Member Functions inherited from CSGObject
 CSGObject ()
 CSGObject (const CSGObject &orig)
virtual ~CSGObject ()
virtual bool is_generic (EPrimitiveType *generic) const
template<class T >
void set_generic ()
void unset_generic ()
virtual void print_serializable (const char *prefix="")
virtual bool save_serializable (CSerializableFile *file, const char *prefix="")
virtual bool load_serializable (CSerializableFile *file, const char *prefix="")
void set_global_io (SGIO *io)
SGIOget_global_io ()
void set_global_parallel (Parallel *parallel)
Parallelget_global_parallel ()
void set_global_version (Version *version)
Versionget_global_version ()
SGVector< char * > get_modelsel_names ()
char * get_modsel_param_descr (const char *param_name)
index_t get_modsel_param_index (const char *param_name)

Additional Inherited Members

- Public Attributes inherited from CSGObject
SGIOio
Parallelparallel
Versionversion
Parameterm_parameters
Parameterm_model_selection_parameters
- Protected Member Functions inherited from CSGObject
virtual void load_serializable_pre () throw (ShogunException)
virtual void load_serializable_post () throw (ShogunException)
virtual void save_serializable_pre () throw (ShogunException)
virtual void save_serializable_post () throw (ShogunException)
- Protected Attributes inherited from CDistribution
CFeaturesfeatures
float64_t pseudo_count

Constructor & Destructor Documentation

CGHMM ( )

default constructor

Definition at line 15 of file GHMM.cpp.

~CGHMM ( )
virtual

Definition at line 20 of file GHMM.cpp.

Member Function Documentation

float64_t get_log_derivative ( int32_t  param_num,
int32_t  num_example 
)
virtual

get logarithm of one example's derivative's likelihood

Parameters
param_numwhich example's param
num_examplewhich example
Returns
logarithm of example's derivative's likelihood

Implements CDistribution.

Definition at line 39 of file GHMM.cpp.

float64_t get_log_likelihood_example ( int32_t  num_example)
virtual

get logarithm of one example's likelihood

Parameters
num_examplewhich example
Returns
logarithm of example's likelihood

Implements CDistribution.

Definition at line 44 of file GHMM.cpp.

float64_t get_log_model_parameter ( int32_t  param_num)
virtual

get logarithm of given model parameter

Parameters
param_numwhich param
Returns
logarithm of given model parameter

Implements CDistribution.

Definition at line 34 of file GHMM.cpp.

virtual const char* get_name ( ) const
virtual

Returns the name of the SGSerializable instance. It MUST BE the CLASS NAME without the prefixed `C'.

Returns
name of the SGSerializable

Implements CSGObject.

Definition at line 72 of file GHMM.h.

int32_t get_num_model_parameters ( )
virtual

get number of model parameters

Returns
number of model parameters

Implements CDistribution.

Definition at line 29 of file GHMM.cpp.

bool train ( CFeatures data = NULL)
virtual

learn distribution

Parameters
datatraining data (parameter can be avoided if distance or kernel-based classifiers are used and distance/kernels are initialized with train data)
Returns
whether training was successful

Implements CDistribution.

Definition at line 24 of file GHMM.cpp.


The documentation for this class was generated from the following files:

SHOGUN Machine Learning Toolbox - Documentation