private static svm_problem prepareProblem(Instance[] instances) {
return prepareProblem(instances, 0, instances.length - 1);
}
private static svm_problem prepareProblem(Instance[] instances, int begin, int end) {
svm_problem prob = new svm_problem();
prob.l = (end - begin) + 1;
prob.y = new double[prob.l];
prob.x = new svm_node[prob.l];
for (int i = begin; i <= end; i++) {