11 #ifndef _KERNEL_MACHINE_H__
12 #define _KERNEL_MACHINE_H__
58 return "KernelMachine"; }
242 for(int32_t i=0; i<nsv; i++)
260 for(int32_t i=0; i<nsv; i++)
SGVector< int32_t > m_svs
int32_t get_num_support_vectors()
void set_bias_enabled(bool enable_bias)
The class Labels models labels, i.e. class assignments of objects.
virtual const char * get_name() const
SGVector< int32_t > get_support_vectors()
static void * apply_helper(void *p)
A generic KernelMachine interface.
A generic learning machine interface.
void set_support_vectors(SGVector< int32_t > svs)
SGVector< float64_t > m_alpha
virtual void store_model_features()
bool get_batch_computation_enabled()
void set_bias(float64_t bias)
void set_batch_computation_enabled(bool enable)
virtual void destroy_vector()
bool set_alpha(int32_t idx, float64_t val)
float64_t get_alpha(int32_t idx)
bool use_batch_computation
bool set_support_vector(int32_t idx, int32_t val)
bool init_kernel_optimization()
int32_t get_support_vector(int32_t idx)
bool get_linadd_enabled()
void set_alphas(SGVector< float64_t > alphas)
The class Features is the base class of all feature objects.
void set_linadd_enabled(bool enable)
virtual CLabels * apply()
void set_kernel(CKernel *k)
virtual ~CKernelMachine()
SGVector< float64_t > get_alphas()
#define SG_MALLOC(type, len)
bool create_new_model(int32_t num)