Search code examples
javamachine-learningclassificationwekalibsvm

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 ?


Solution

  • You can load .libsvm data file format using the weka.core.converters.SVMLightLoader Thank you.