final MLData input = pair.getInput();
final MLData output = pair.getIdeal();
result.x[elementIndex] = new svm_node[input.size()];
for (int i = 0; i < input.size(); i++) {
result.x[elementIndex][i] = new svm_node();
result.x[elementIndex][i].index = i + 1;
result.x[elementIndex][i].value = input.getData(i);
}
result.y[elementIndex] = output.getData(outputIndex);