public final class LibSvmLearner extends AbstractLearner<LibSvmModel>
A wrapper classifier for the LIBSVM machine learning library.
| Constructor and Description |
|---|
LibSvmLearner(LibSvmKernel kernel)
Creates a new completely initialized
LibSvmLearner using a linear kernel. |
| Modifier and Type | Method and Description |
|---|---|
String |
toString() |
LibSvmModel |
train(Dataset dataset) |
train, trainpublic LibSvmLearner(LibSvmKernel kernel)
Creates a new completely initialized LibSvmLearner using a linear kernel. It can be used to either train
a new model or classify unlabeled FeatureVectors.
kernel - The kernel to use with the SVM predictor. This implementation currently supports the
LinearKernel and the RBFKernel. The kernel is required to transfer the data to a
higher dimensional space, where it is separable. Please read on the theoretical details of SVM to
learn more. If you do not care you are probably fine using either kernel. Just try them.public LibSvmModel train(Dataset dataset)
public String toString()
toString in class AbstractLearner<LibSvmModel>Copyright © 2018. All rights reserved.