20 using namespace shogun;
39 SG_ERROR(
"Number of training vectors does not match number of labels\n");
49 ASSERT(n>0 && n==m && n==num_label);
55 for (int32_t i=0; i<n; i++)
60 for (int32_t j=0; j<n; j++)
68 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.
bool init(E_PROB_TYPE t, int32_t timeout=60)
init cplex with problem type t and retry timeout 60 seconds
SGVector< float64_t > get_labels()
virtual int32_t get_num_vectors() const =0
SGMatrix< float64_t > get_kernel_matrix()
bool set_alpha(int32_t idx, float64_t val)
float64_t get_label(int32_t idx)
bool set_support_vector(int32_t idx, int32_t val)
The class Features is the base class of all feature objects.
A generic Support Vector Machine Interface.
virtual bool train_machine(CFeatures *data=NULL)
#define SG_MALLOC(type, len)
float64_t get_objective()