This has been really confusing me for the last few hours. If the latter is the case, how can I resolve naming conflicts in Windows where LibSVM.jar and libsvm.jar are treated as the same file? lib folder.īut do I need libsvm.jar as provided by the download from: But where and what? I am running my application through NetBeans 8 using Tomcat and have recent versions of weka.jar and LibSVM.jar in the application's. I am working on the theory that the cause of the problem is environmental. I don't believe this issue is due to my own code because other classifiers have run successfully with it. ![]() However, an exception is being thrown at line:Īnd despite numerous attempts at try.catch blocks around this code, the exception occurring is simply reported as null (which is really helpful) as per full stack trace below. (eval.toSummaryString("\nResults\n=\n", false)) String optionsArray = options.split(" ") ![]() ![]() String options = (classificationType.getParameters()) tClassIndex(train.numAttributes() - 1) ĬlassificationType classificationType = ClassificationTypeDAO.get(6) If I use Weka Explorer to run some training data against testing data using SVM with a linear kernel, everything is fine.īut I need to do this programmatically in my own Java and my current code looks like this: Instances train = new Instances (.)
0 Comments
Leave a Reply. |