11 #ifndef __STATE_MODEL_H__ 12 #define __STATE_MODEL_H__ 14 #include <shogun/lib/config.h> 138 int32_t num_feats, int32_t num_obs)
const = 0;
174 int32_t num_feats)
const;
211 virtual const char*
get_name()
const {
return "StateModel"; }
SGMatrix< float64_t > m_state_loss_mat
SGVector< float64_t > get_start_states() const
SGVector< float64_t > m_q
virtual CSequence * states_to_labels(SGVector< int32_t > state_seq) const =0
SGVector< float64_t > get_stop_states() const
class CStateModel base, abstract class for the internal state representation used in the CHMSVMModel...
SGVector< float64_t > m_p
virtual void reshape_emission_params(SGVector< float64_t > &emission_weights, SGVector< float64_t > w, int32_t num_feats, int32_t num_obs)=0
Class CSequence to be used in the application of Structured Output (SO) learning to Hidden Markov Sup...
virtual SGVector< int32_t > get_monotonicity(int32_t num_free_states, int32_t num_feats) const
Class SGObject is the base class of all shogun objects.
virtual const char * get_name() const
Dynamic array class for CSGObject pointers that creates an array that can be used like a list or an a...
int32_t get_num_states() const
int32_t m_num_transmission_params
virtual SGVector< int32_t > labels_to_states(CSequence *label_seq) const =0
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)=0
virtual float64_t loss(CSequence *label_seq_lhs, CSequence *label_seq_rhs)=0
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 =0
virtual SGMatrix< float64_t > loss_matrix(CSequence *label_seq)=0
int32_t get_num_transmission_params() const