Class for building model of the support vector machine algorithm
More...
Constructs the support vector machine model builder
- Parameters
-
context | Context to manage SVM model builder |
cls | Data type to use in intermediate computations of SVM model data, Double.class or Float.class |
nFeatures | Number of features |
nSupportVectors | Number of support vectors in model |
Get built model of SVM
- Returns
- Model of SVM
void setBias |
( |
double |
bias | ) |
|
Set bias term to model
- Parameters
-
void setClassificationCoefficients |
( |
FloatBuffer |
classCoefficients, |
|
|
long |
length |
|
) |
| |
Set classification coefficients to the model
- Parameters
-
classCoefficients | Set of classification coefficients |
length | Size of set of classification coefficients |
void setClassificationCoefficients |
( |
DoubleBuffer |
classCoefficients, |
|
|
long |
length |
|
) |
| |
Set classification coefficients to the model
- Parameters
-
classCoefficients | Set of classification coefficients |
length | Size of set of classification coefficients |
void setClassificationCoefficients |
( |
float[] |
classCoefficients | ) |
|
Set classification coefficients to the model
- Parameters
-
classCoefficients | Set of classification coefficients |
void setClassificationCoefficients |
( |
double[] |
classCoefficients | ) |
|
Set classification coefficients to the model
- Parameters
-
classCoefficients | Set of classification coefficients |
void setSupportIndices |
( |
IntBuffer |
supportIndices, |
|
|
long |
length |
|
) |
| |
Set support indices to the model
- Parameters
-
supportIndices | Set of support indices |
length | Size of set of classification coefficients |
void setSupportIndices |
( |
int[] |
supportIndices | ) |
|
Set support indices to the model
- Parameters
-
supportIndices | Set of support indices |
void setSupportVectors |
( |
FloatBuffer |
supportVestors, |
|
|
long |
length |
|
) |
| |
Set support vectors to the model
- Parameters
-
supportVestors | Set of support vectors |
length | Size of set of support-vectors |
void setSupportVectors |
( |
DoubleBuffer |
supportVestors, |
|
|
long |
length |
|
) |
| |
Set support vectors to the model
- Parameters
-
supportVestors | Set of support vectors |
length | Size of set of support-vectors |
void setSupportVectors |
( |
float[] |
supportVestors | ) |
|
Set support vectors to the model
- Parameters
-
supportVestors | Set of support vectors |
void setSupportVectors |
( |
double[] |
supportVestors | ) |
|
Set support vectors to the model
- Parameters
-
supportVestors | Set of support vectors |
The documentation for this class was generated from the following file: