public class SVMModel extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
SVMModel.KernelType
Defines the enum of the Kernel-type (LINEAR,POLY,RBF,SIGMOID)
|
| Constructor and Description |
|---|
SVMModel(File f)
Reads the SVMModel from a SVM-light model file
|
SVMModel(String f)
Reads the SVMModel from an SVM-light model file
|
| Modifier and Type | Method and Description |
|---|---|
double |
classify(SparseVector v)
Classifies a SparseVector
|
double |
kernel(SparseVector a,
SparseVector b)
Computes a kernel
|
static void |
main(String[] argv)
Test routine
|
String |
toString()
Returns this model as a descriptive string
|
public SVMModel(String f) throws Exception
Exceptionpublic double classify(SparseVector v)
public double kernel(SparseVector a, SparseVector b)
public String toString()
Copyright © 2018. All rights reserved.