10 #ifndef _DIRECTORLINEARMACHINE_H___ 11 #define _DIRECTORLINEARMACHINE_H___ 13 #include <shogun/lib/config.h> 15 #ifdef USE_SWIG_DIRECTORS 24 #define IGNORE_IN_CLASSLIST 29 CDirectorLinearMachine()
36 virtual ~CDirectorLinearMachine()
50 virtual bool train(CFeatures* data=NULL)
55 virtual bool train_function(CFeatures* data=NULL)
57 SG_ERROR(
"Train function of Director Linear Machine needs to be overridden.\n")
65 virtual
void set_features(CDotFeatures* feat)
74 virtual CDotFeatures* get_features()
85 virtual CLabels* apply(CFeatures* data=NULL)
91 virtual CBinaryLabels* apply_binary(CFeatures* data=NULL)
97 virtual CRegressionLabels* apply_regression(CFeatures* data=NULL)
105 virtual float64_t apply_one(int32_t vec_idx)
114 virtual void set_labels(CLabels* lab)
123 virtual CLabels* get_labels()
139 virtual void set_store_model_features(
bool store_model)
144 #ifndef SWIG // SWIG should skip this part 153 virtual bool train_locked(SGVector<index_t> indices)
163 virtual CLabels* apply_locked(SGVector<index_t> indices)
168 virtual CBinaryLabels* apply_locked_binary(SGVector<index_t> indices)
173 virtual CRegressionLabels* apply_locked_regression(
174 SGVector<index_t> indices)
180 #endif // SWIG // SWIG should skip this part 190 virtual void data_lock(CLabels* labs, CFeatures* features)
196 virtual void data_unlock()
202 virtual bool supports_locking()
const 213 virtual const char* get_name()
const {
return "DirectorLinearMachine"; }
226 virtual bool train_machine(CFeatures* data=NULL)
228 return train_function(data);
virtual CBinaryLabels * apply_binary(CFeatures *data=NULL)
virtual bool train(CFeatures *data=NULL)
virtual CRegressionLabels * apply_regression(CFeatures *data=NULL)
virtual CLabels * apply_locked(SGVector< index_t > indices)
virtual CDotFeatures * get_features()
virtual bool train_locked(SGVector< index_t > indices)
virtual float64_t apply_one(int32_t vec_idx)
virtual void set_store_model_features(bool store_model)
virtual bool supports_locking() const
virtual void data_unlock()
virtual void data_lock(CLabels *labs, CFeatures *features)
virtual CLabels * get_labels()
virtual void set_features(CDotFeatures *feat)
virtual CRegressionLabels * apply_locked_regression(SGVector< index_t > indices)
virtual CMulticlassLabels * apply_locked_multiclass(SGVector< index_t > indices)
all of classes and functions are contained in the shogun namespace
#define IGNORE_IN_CLASSLIST
virtual CBinaryLabels * apply_locked_binary(SGVector< index_t > indices)
virtual CMulticlassLabels * apply_multiclass(CFeatures *data=NULL)
virtual EProblemType get_machine_problem_type() const
virtual void set_labels(CLabels *lab)
virtual CLabels * apply(CFeatures *data=NULL)