GenSVM
Default Data File Specification

This page describes the input file format for a dataset. This specification is used by gensvm_read_data() and gensvm_write_predictions(). The data file specification is the same as that used in MSVMpack (verified in v. 1.3).

The file is expected to be as follows

n
m
x_11 x_12 ... x_1m y_1
x_21 x_22 ... x_2m y_2
...
x_n1 x_n2 ... x_nm y_n

Here, n denotes the number of instances and m denotes the number of predictors. The class labels y_i are expected in the final column of each line.

As an example, below the first 5 lines of the iris dataset are shown.

150
4
5.10000 3.50000 1.40000 0.20000 1.00000
4.90000 3.00000 1.40000 0.20000 1.00000
4.70000 3.20000 1.30000 0.20000 1.00000