Posts tagged ‘SVM’

How do I use a Classificator?

Try this example:

ClassificationDataSet dataSet = DataSetFactory.IRIS();
 
SVMClassifier svm = new SVMClassifier();
 
svm.train(dataSet);
svm.predict(dataSet);
 
dataSet.showGUI();

If you get an error, you probably need LibSVM in your classpath.