[英]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. 我有一个以.libsvm
格式编写的数据集,我想使用机器学习算法构建一个分类模型。 I've tried the Weka environment version 3.6.12 but i get the following error: 我已经尝试过Weka环境版本3.6.12,但出现以下错误:
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
数据文件格式。谢谢。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.