Model of the classifier trained by the stump::classification::training::Batch algorithm.
More...
|
static services::SharedPtr< Model > | create (size_t nFeatures=0, size_t nClasses=2, services::Status *stat=NULL) |
|
Default constructor for Model to creator
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
-
modelFPType | Data type to store decision stump model data, double or float |
- Parameters
-
[in] | nFeatures | Number of features in the dataset |
[in] | nClasses | Number of classes in the dataset |
[out] | stat | Status 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: