11 #ifndef __TWO_STATE_MODEL_H__ 12 #define __TWO_STATE_MODEL_H__ 14 #include <shogun/lib/config.h> 128 int32_t num_feats, int32_t num_obs)
const;
158 int32_t num_feats)
const;
171 static CHMSVMModel*
simulate_data(int32_t num_exm, int32_t exm_len, int32_t num_features, int32_t num_noise_features);
174 virtual const char*
get_name()
const {
return "TwoStateModel"; }
virtual void weights_to_vector(SGVector< float64_t > &psi, SGMatrix< float64_t > transmission_weights, SGVector< float64_t > emission_weights, int32_t num_feats, int32_t num_obs) const
virtual ~CTwoStateModel()
virtual void reshape_emission_params(SGVector< float64_t > &emission_weights, SGVector< float64_t > w, int32_t num_feats, int32_t num_obs)
Class CHMSVMModel that represents the application specific model and contains the application depende...
class CTwoStateModel class for the internal two-state representation used in the CHMSVMModel.
virtual SGMatrix< float64_t > loss_matrix(CSequence *label_seq)
class CStateModel base, abstract class for the internal state representation used in the CHMSVMModel...
Class CSequence to be used in the application of Structured Output (SO) learning to Hidden Markov Sup...
virtual float64_t loss(CSequence *label_seq_lhs, CSequence *label_seq_rhs)
Dynamic array class for CSGObject pointers that creates an array that can be used like a list or an a...
all of classes and functions are contained in the shogun namespace
virtual void reshape_transmission_params(SGMatrix< float64_t > &transmission_weights, SGVector< float64_t > w)
static CHMSVMModel * simulate_data(int32_t num_exm, int32_t exm_len, int32_t num_features, int32_t num_noise_features)
virtual const char * get_name() const
virtual SGVector< int32_t > labels_to_states(CSequence *label_seq) const
virtual SGVector< int32_t > get_monotonicity(int32_t num_free_states, int32_t num_feats) const
virtual CSequence * states_to_labels(SGVector< int32_t > state_seq) const