18 using namespace shogun;
21 CMachine(), m_features(NULL), m_min_label(0),
22 m_num_classes(0), m_dim(0), m_means(),
23 m_variances(), m_label_prob(), m_rates()
29 CMachine(), m_features(NULL), m_min_label(0),
30 m_num_classes(0), m_dim(0), m_means(),
31 m_variances(), m_label_prob(), m_rates()
36 SG_ERROR(
"Specified features are not of type CDotFeatures\n");
56 SG_ERROR(
"Specified features are not of type CDotFeatures\n");
65 int32_t min_label = train_labels.
vector[0];
66 int32_t max_label = train_labels.
vector[0];
70 for (i=1; i<train_labels.
vlen; i++)
77 for (i=0; i<train_labels.
vlen; i++)
78 train_labels.
vector[i]-= min_label;
120 for (i=0; i<train_labels.
vlen; i++)
122 for (j=0; j<
m_dim; j++)
131 for (j=0; j<
m_dim; j++)
136 for (i=0; i<train_labels.
vlen; i++)
138 for (j=0; j<
m_dim; j++)
146 for (j=0; j<
m_dim; j++)
170 for (
int i=0; i<n; i++)
180 SG_ERROR(
"No features specified\n");
182 SG_ERROR(
"Specified features are not of type CDotFeatures\n");
212 for (k=0; k<
m_dim; k++)
217 int32_t max_label_idx = 0;