C++ API Reference for Intel® Data Analytics Acceleration Library 2020 Update 1

Static Public Member Functions | List of all members
Model Class Reference

Model of the classifier trained by the svm::training::Batch algorithm More...

Static Public Member Functions

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< Modelcreate (services::Status *stat=NULL)
 

Class Declaration

References

Constructor & Destructor Documentation

Model ( modelFPType  dummy,
size_t  nColumns,
data_management::NumericTableIface::StorageLayout  layout = data_management::NumericTableIface::aos 
)
inline

Constructs the SVM model

Template Parameters
modelFPTypeData type to store SVM model data, double or float
Parameters
[in]dummyDummy variable for the templated constructor
[in]nColumnsNumber of features in input data
[in]layoutData layout of the numeric table of support vectors
Deprecated:
This item will be removed in a future release. Use Model::create instead.
Model ( )
inline

Empty constructor for deserialization

Deprecated:
This item will be removed in a future release. Use Model::create instead.

Member Function Documentation

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
modelFPTypeData type to store SVM model data, double or float
Parameters
[in]nColumnsNumber of features in input data
[in]layoutData layout of the numeric table of support vectors
[out]statStatus 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]statStatus 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
biasBias of the model

The documentation for this class was generated from the following file:

For more complete information about compiler optimizations, see our Optimization Notice.