C++ API Reference for Intel® Data Analytics Acceleration Library 2018 Update 2

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< Modelcreate (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() [1/2]

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() [2/2]

Model ( )
inline

Empty constructor for deserialization

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

Member Function Documentation

◆ create() [1/2]

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

◆ create() [2/2]

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

◆ getBias()

virtual double getBias ( )
inlinevirtual

Returns the bias constructed during the training of the SVM model

Returns
Bias

◆ getClassificationCoefficients()

data_management::NumericTablePtr getClassificationCoefficients ( )
inline

Returns classification coefficients constructed during the training of the SVM model

Returns
Array of classification coefficients

◆ getNumberOfFeatures()

size_t getNumberOfFeatures ( ) const
inlinevirtual

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

Implements Model.

◆ getSupportIndices()

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

◆ getSupportVectors()

data_management::NumericTablePtr getSupportVectors ( )
inline

Returns support vectors constructed during the training of the SVM model

Returns
Array of support vectors

◆ setBias()

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.