15 using namespace shogun;
39 SG_ERROR(
"Specified features are not of type CDotFeatures\n");
57 for (int32_t i=0; i<num_feat; i++)
65 for (int32_t i=0; i<num_vec; i++)
69 if (CMath::sign<float64_t>(output[i]) != train_labels.
vector[i])
81 SG_INFO(
"Perceptron algorithm converged after %d iterations.\n", iter);