43 SG_ERROR(
"%s::train_machine(): Number of training vectors (%d) does"
44 " not match number of labels (%d)\n",
get_name(),
58 ASSERT(n>0 && n==m && n==num_label)
64 for (int32_t i=0; i<n; i++)
69 for (int32_t j=0; j<n; j++)
77 for (int32_t i=0; i<n; i++)
virtual bool init(CFeatures *lhs, CFeatures *rhs)
int32_t get_num_support_vectors()
Class CCplex to encapsulate access to the commercial cplex general purpose optimizer.
virtual ELabelType get_label_type() const =0
virtual int32_t get_num_labels() const =0
virtual int32_t get_num_vectors() const =0
SGMatrix< float64_t > get_kernel_matrix()
virtual const char * get_name() const
bool set_alpha(int32_t idx, float64_t val)
bool set_support_vector(int32_t idx, int32_t val)
all of classes and functions are contained in the shogun namespace
The class Features is the base class of all feature objects.
A generic Support Vector Machine Interface.
virtual bool train_machine(CFeatures *data=NULL)
Binary Labels for binary classification.
float64_t get_objective()