Model of the classifier trained by the svm::training::Batch algorithm
More...
|
template<typename modelFPType > |
static DAAL_EXPORT
services::SharedPtr< Model > | create (size_t nColumns, data_management::NumericTableIface::StorageLayout layout=data_management::NumericTableIface::aos, services::Status *stat=NULL) |
|
static services::SharedPtr< Model > | create (services::Status *stat=NULL) |
|
Model |
( |
modelFPType |
dummy, |
|
|
size_t |
nColumns, |
|
|
data_management::NumericTableIface::StorageLayout |
layout = data_management::NumericTableIface::aos |
|
) |
| |
|
inline |
Constructs the SVM model
- Template Parameters
-
modelFPType | Data type to store SVM model data, double or float |
- Parameters
-
[in] | dummy | Dummy variable for the templated constructor |
[in] | nColumns | Number of features in input data |
[in] | layout | Data layout of the numeric table of support vectors |
- Deprecated:
- This item will be removed in a future release. Use Model::create instead.
Empty constructor for deserialization
- Deprecated:
- This item will be removed in a future release. Use Model::create instead.
static DAAL_EXPORT services::SharedPtr<Model> create |
( |
size_t |
nColumns, |
|
|
data_management::NumericTableIface::StorageLayout |
layout = data_management::NumericTableIface::aos , |
|
|
services::Status * |
stat = NULL |
|
) |
| |
|
static |
Constructs the SVM model
- Template Parameters
-
modelFPType | Data type to store SVM model data, double or float |
- Parameters
-
[in] | nColumns | Number of features in input data |
[in] | layout | Data layout of the numeric table of support vectors |
[out] | stat | Status of the model construction |
- Returns
- SVM model
static services::SharedPtr<Model> create |
( |
services::Status * |
stat = NULL | ) |
|
|
inlinestatic |
Constructs empty SVM model for deserialization
- Parameters
-
[out] | stat | Status of the model construction |
- Returns
- Empty SVM model for deserialization
virtual double getBias |
( |
| ) |
|
|
inlinevirtual |
Returns the bias constructed during the training of the SVM model
- Returns
- Bias
data_management::NumericTablePtr getClassificationCoefficients |
( |
| ) |
|
|
inline |
Returns classification coefficients constructed during the training of the SVM model
- Returns
- Array of classification coefficients
size_t getNumberOfFeatures |
( |
| ) |
const |
|
inline |
Retrieves the number of features in the dataset was used on the training stage
- Returns
- Number of features in the dataset was used on the training stage
data_management::NumericTablePtr getSupportIndices |
( |
| ) |
|
|
inline |
Returns indices of the support vectors constructed during the training of the SVM model
- Returns
- Array of support vectors indices
data_management::NumericTablePtr getSupportVectors |
( |
| ) |
|
|
inline |
Returns support vectors constructed during the training of the SVM model
- Returns
- Array of support vectors
virtual void setBias |
( |
double |
bias | ) |
|
|
inlinevirtual |
Sets the bias for the SVM model
- Parameters
-
The documentation for this class was generated from the following file: