svm, read_xy (general purpose)