项目作者: ZhexiongLiu

项目描述 :
Python script used to transform data to LibSVM format
高级语言: Python
项目地址: git://github.com/ZhexiongLiu/FormatData2LibSVM.git
创建时间: 2018-04-21T14:01:19Z
项目社区:https://github.com/ZhexiongLiu/FormatData2LibSVM

开源协议:MIT License

下载


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.