public class SVModel extends Object
| Constructor and Description |
|---|
SVModel() |
| Modifier and Type | Method and Description |
|---|---|
int[] |
getClassLabels()
Returns the class labels.
|
int |
getNumberOfSupportVectors()
Returns the number of support vectors.
|
int[] |
getNumberOfSupportVectorsPerClass()
Returns the number of support vectors per class.
|
double[][] |
getSupportVectorCoef()
Returns the nonzero coefficients of the support vector classifier or the
approximate function, in the case of regression.
|
void |
setClassLabels(int[] label)
Sets the class labels.
|
public int[] getNumberOfSupportVectorsPerClass()
int array containing the number of support
vectorspublic int getNumberOfSupportVectors()
int, the number of support vectorspublic double[][] getSupportVectorCoef()
double matrix containing the non-zero coefficientspublic int[] getClassLabels()
int array containing the class labelspublic void setClassLabels(int[] label)
label - an int array containing the labels for each of
the class levelsCopyright © 2020 Rogue Wave Software. All rights reserved.