18 using namespace shogun;
21 :
CMachine(), m_pos_pseudo(1e-10), m_neg_pseudo(1e-10),
22 pos_model(NULL), neg_model(NULL), features(NULL)
25 "pos_pseudo",
"pseudo count for positive class");
27 "neg_pseudo",
"pseudo count for negative class");
30 "pos_model",
"LinearHMM modelling positive class.");
32 "neg_model",
"LinearHMM modelling negative class.");
35 "features",
"String Features.");
54 SG_ERROR(
"Features not of class string type word\n");
81 pos_indizes[pos_idx++]=i;
83 neg_indizes[neg_idx++]=i;
111 SG_ERROR(
"No features specified\n");
116 SG_ERROR(
"Features not of class string type word\n");
132 SG_ERROR(
"model(s) not assigned\n");
virtual ~CPluginEstimate()
virtual EFeatureType get_feature_type()=0
bool set_label(int32_t idx, float64_t label)
The class Labels models labels, i.e. class assignments of objects.
virtual int32_t get_num_vectors() const
A generic learning machine interface.
float64_t get_log_likelihood_example(uint16_t *vector, int32_t len)
void add(bool *param, const char *name, const char *description="")
Class SGObject is the base class of all shogun objects.
virtual EFeatureClass get_feature_class()=0
virtual void set_features(CStringFeatures< uint16_t > *feat)
CPluginEstimate(float64_t pos_pseudo=1e-10, float64_t neg_pseudo=1e-10)
float64_t get_label(int32_t idx)
void free_feature_vector(ST *feat_vec, int32_t num, bool dofree)
SGVector< ST > get_feature_vector(int32_t num)
The class Features is the base class of all feature objects.
virtual bool train_machine(CFeatures *data=NULL)
virtual bool train(CFeatures *data=NULL)
CStringFeatures< uint16_t > * features
#define SG_MALLOC(type, len)
The class LinearHMM is for learning Higher Order Markov chains.