Package com.tagtraum.core.ml
Class SVM
- java.lang.Object
-
- com.tagtraum.core.ml.SVM
-
public class SVM extends Object
Allows predictions based on a SVM model and range/scale file.- Author:
- Hendrik Schreiber
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
predict(float[] features)
Predict class based on the provided features.protected libsvm.svm_node[]
toNodes(float[] features)
-
-
-
Constructor Detail
-
SVM
public SVM(URL model, URL range) throws IOException
- Parameters:
model
- model filerange
- range/scale file- Throws:
IOException
-
-