20 using namespace shogun;
47 SG_ERROR(
"Specified features are not of type CDotFeatures\n");
59 struct options Options;
61 struct vector_double Weights;
62 struct vector_double Outputs;
69 Data.Y=train_labels.
vector;
74 Options.lambda=1/(2*
get_C1());
75 Options.lambda_u=1/(2*
get_C1());
79 Options.cgitermax=10000;
80 Options.mfnitermax=50;
89 for (int32_t i=0;i<num_vec;i++)
91 if(train_labels.
vector[i]>0)
96 ssl_train(&Data, &Options, &Weights, &Outputs);
97 ASSERT(Weights.vec && Weights.d==num_feat+1);
100 for (int32_t i=0; i<num_feat+1; i++)