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 stump::training::Batch algorithm. More...

Static Public Member Functions

template<typename modelFPType >
static DAAL_EXPORT
services::SharedPtr< Model
create (size_t nFeatures, services::Status *stat=NULL)
 

Class Declaration

References

Constructor & Destructor Documentation

DAAL_EXPORT Model ( size_t  nFeatures,
modelFPType  dummy 
)

Constructs the decision stump model

Template Parameters
modelFPTypeData type to store decision stump model data, double or float
Parameters
[in]nFeaturesNumber of features in the dataset
[in]dummyDummy variable for the templated constructor
Deprecated:
This item will be removed in a future release. Use Model::create instead.
Model ( )

Empty constructor for deserialization

Member Function Documentation

static DAAL_EXPORT services::SharedPtr<Model> create ( size_t  nFeatures,
services::Status *  stat = NULL 
)
static

Constructs the decision stump model

Template Parameters
modelFPTypeData type to store decision stump model data, double or float
Parameters
[in]nFeaturesNumber of features in the dataset
[out]statStatus of the model construction
Returns
Decision stump model
DAAL_EXPORT modelFPType getLeftSubsetAverage ( )

Returns an average of the weighted responses for the "left" subset

Returns
Average of the weighted responses for the "left" subset
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
DAAL_EXPORT modelFPType getRightSubsetAverage ( )

Returns an average of the weighted responses for the "right" subset

Returns
Average of the weighted responses for the "right" subset
size_t getSplitFeature ( )

Returns the split feature

Returns
Index of the feature over which the split is made
DAAL_EXPORT modelFPType getSplitValue ( )

Returns a value of the feature that defines the split

Returns
Value of the feature over which the split is made
DAAL_EXPORT void setLeftSubsetAverage ( modelFPType  leftSubsetAverage)

Sets an average of the weighted responses for the "left" subset

Parameters
[in]leftSubsetAverageAn average of the weighted responses for the "left" subset
DAAL_EXPORT void setRightSubsetAverage ( modelFPType  rightSubsetAverage)

Sets an average of the weighted responses for the "right" subset

Parameters
[in]rightSubsetAverageAn average of the weighted responses for the "right" subset
void setSplitFeature ( size_t  splitFeature)

Sets the split feature

Parameters
[in]splitFeatureIndex of the split feature
DAAL_EXPORT void setSplitValue ( modelFPType  splitValue)

Sets a value of the feature that defines the split

Parameters
[in]splitValueValue of the split feature

Member Data Documentation

size_t _nFeatures
protected

Number of features in the dataset was used on the training stage

size_t _splitFeature
protected

Index of the feature over which the split is made

services::SharedPtr<data_management::Matrix<double> > _values
protected

Table that contains 3 values:
Value of the feature that defines the split,
Average of the weighted responses for the "left" subset,
Average of the weighted responses for the "right" subset


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

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