if (i % 10 == 0) {
System.out.print(i + ".");
}
// Store dimension/value pairs in new LabeledFeatureVector object
traindata[i] = new LabeledFeatureVector(((i < (N / 2)) ? +1 : -1), dims,
values);
// Use cosine similarities (LinearKernel with L2-normalized input vectors)
traindata[i].normalizeL2();
}