简体   繁体   中英

How to build a machine learning model using dataset with libsvm format

I have a dataset written on the .libsvm format, and i want to build a model of classification using Machine Learning algorithms. I've tried the Weka environment version 3.6.12 but i get the following error:

weka.core.convrters.LibSVMLoaderfailed to load 'train.ecml.libsvm.txt' Reason: Unable to determine structure as libsvm:java.lang.StringIndexOutOfBoundsException:String index out of range: -1

So, How to solve this problem or is there any other simple way to deal with this data file format ?

您可以使用weka.core.converters.SVMLightLoader加载.libsvm数据文件格式。谢谢。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM