public class SparseSupportVectorMachine
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
SparseSupportVectorMachine(IMercerKernel kernel,
double c)
Initializes a new instance of the SparseSupportVectorMachine class.
|
SparseSupportVectorMachine(IMercerKernel kernel,
double c,
double cn)
Initializes a new instance of the SparseSupportVectorMachine class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Finish() |
void |
Learn(SparseArray[] input,
int[] output) |
void |
Learn(SparseArray input,
int output)
Online learn.
|
int |
Predict(SparseArray feature) |
public SparseSupportVectorMachine(IMercerKernel kernel, double c)
kernel - Mercer kernel.c - Soft margin penalty parameter.public SparseSupportVectorMachine(IMercerKernel kernel, double c, double cn)
kernel - Mercer kernel.c - Soft margin penalty parameter for positive instances.cn - Soft margin penalty parameter for negative instances.public void Learn(SparseArray[] input, int[] output)
public void Learn(SparseArray input, int output)
input - Feature.output - Label.public int Predict(SparseArray feature)
public void Finish()