10 #ifndef _DIRECTORKERNELMACHINE_H___
11 #define _DIRECTORKERNELMACHINE_H___
13 #ifdef USE_SWIG_DIRECTORS
22 #define IGNORE_IN_CLASSLIST
27 CDirectorKernelMachine()
41 CDirectorKernelMachine(CKernel* k,
const SGVector<float64_t> alphas,
const SGVector<int32_t> svs,
float64_t b)
42 : CKernelMachine(k, alphas, svs, b)
47 virtual ~CDirectorKernelMachine()
61 virtual bool train(CFeatures* data=NULL)
66 virtual bool train_function(CFeatures* data=NULL)
68 SG_ERROR(
"Train function of Director Kernel Machine needs to be overridden.\n")
78 virtual CLabels* apply(CFeatures* data=NULL)
84 virtual CBinaryLabels* apply_binary(CFeatures* data=NULL)
90 virtual CRegressionLabels* apply_regression(CFeatures* data=NULL)
112 virtual void set_labels(CLabels* lab)
121 virtual CLabels* get_labels()
137 virtual void set_store_model_features(
bool store_model)
150 virtual bool train_locked(SGVector<index_t> indices)
160 virtual CLabels* apply_locked(SGVector<index_t> indices)
165 virtual CBinaryLabels* apply_locked_binary(SGVector<index_t> indices)
170 virtual CRegressionLabels* apply_locked_regression(
171 SGVector<index_t> indices)
184 virtual SGVector<float64_t> apply_locked_get_output(
185 SGVector<index_t> indices)
198 virtual void data_lock(CLabels* labs, CFeatures* features)
204 virtual void data_unlock()
210 virtual bool supports_locking()
const
221 virtual const char* get_name()
const {
return "DirectorKernelMachine"; }
234 virtual bool train_machine(CFeatures* data=NULL)
236 return train_function(data);