jhhuang96 / FormatData2LibSVM

Python script used to transform data to LibSVM format

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FormatData2LibSVM

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.

About

Python script used to transform data to LibSVM format


Languages

Language:Python 100.0%