Which Weka and LibSVM .jar files to use in Java code for SVM classification
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: If I use Weka Explorer to run some training data against testing data using SVM with a linear kernel, everything is fine. But I need to do this programmatically in my own Java and my current code looks like this: Instances train = new Instances (...); train . setClassIndex ( train . numAttributes () - 1 ); Instances test = new Instances (...) + ClassificationType classificationType = ClassificationTypeDAO . get ( 6 ); LibSVM libsvm = new LibSVM (); String options = ( classificationType . getParameters ()); String [] optionsArray =