public class SparseMulticlassSupportVectorMachine
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
SparseMulticlassSupportVectorMachine(IMercerKernel kernel,
double c,
double[] weight)
Initializes a new instance of the SparseMulticlassSupportVectorMachine class.
|
SparseMulticlassSupportVectorMachine(IMercerKernel kernel,
double c,
double[] weight,
SVM.Strategy strategy)
Initializes a new instance of the SparseMulticlassSupportVectorMachine class.
|
SparseMulticlassSupportVectorMachine(IMercerKernel kernel,
double c,
int numberOfClasses)
Initializes a new instance of the SparseMulticlassSupportVectorMachine class.
|
SparseMulticlassSupportVectorMachine(IMercerKernel kernel,
double c,
int numberOfClasses,
SVM.Strategy strategy)
Initializes a new instance of the SparseMulticlassSupportVectorMachine class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Finish()
Process support vectors until convergence.
|
void |
Learn(SparseArray[] input,
int[] output) |
void |
Learn(SparseArray input,
int output)
Online learn.
|
int |
Predict(SparseArray feature) |
public SparseMulticlassSupportVectorMachine(IMercerKernel kernel, double c, int numberOfClasses)
kernel - Mercer kernel.c - Soft margin penalty parameter.numberOfClasses - Number of classes.public SparseMulticlassSupportVectorMachine(IMercerKernel kernel, double c, int numberOfClasses, SVM.Strategy strategy)
kernel - Mercer kernel.c - Soft margin penalty parameter.numberOfClasses - Number of classes.strategy - Strategy.public SparseMulticlassSupportVectorMachine(IMercerKernel kernel, double c, double[] weight)
kernel - Mercer kernel.c - Soft margin penalty parameter.weight - Class weight.public SparseMulticlassSupportVectorMachine(IMercerKernel kernel, double c, double[] weight, SVM.Strategy strategy)
kernel - Mercer kernel.c - Soft margin penalty parameter.weight - Class weight.strategy - Strategy.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()