This python script could transform data to LibSVM format.
Before running this script, please make sure users have installed Python3 with the packages os, sys
and pandas
.
Users could run it using command like this: $ python FormatData2Libsvm.py para1 para2
.
para1
is the name of the input file (non-binary file).para2
is the column delimiter in the input file:0 -- blank (' '), 1 -- tab ('\t'), 2 -- comma (',')
.
For example, users could run it using the data uploaded like this: $ python FormatData2Libsvm.py test_data 1
.