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

Static Public Member Functions

static services::SharedPtr< Modelcreate (size_t nFeatures=0, size_t nClasses=2, services::Status *stat=NULL)
 

Class Declaration

References

Constructor & Destructor Documentation

Model ( )

Default constructor for Model to creator

Member Function Documentation

static services::SharedPtr<Model> create ( size_t  nFeatures = 0,
size_t  nClasses = 2,
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
[in]nClassesNumber of classes in the dataset
[out]statStatus of the model construction
Returns
Decision stump model
DAAL_EXPORT modelFPType getLeftValue ( )

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

Returns
Average of the weighted responses for the "left" subset
DAAL_EXPORT modelFPType getRightValue ( )

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

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

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

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

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