Model of the classifier trained by the stump::training::Batch algorithm.
More...
◆ Model() [1/2]
DAAL_EXPORT Model |
( |
size_t |
nFeatures, |
|
|
modelFPType |
dummy |
|
) |
| |
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] | dummy | Dummy variable for the templated constructor |
- Deprecated:
- This item will be removed in a future release. Use Model::create instead.
◆ Model() [2/2]
Empty constructor for deserialization
◆ create()
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 |
[out] | stat | Status of the model construction |
- Returns
- Decision stump model
◆ getLeftSubsetAverage()
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
◆ 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.
◆ getRightSubsetAverage()
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
◆ getSplitFeature()
size_t getSplitFeature |
( |
| ) |
|
Returns the split feature
- Returns
- Index of the feature over which the split is made
◆ getSplitValue()
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
◆ setLeftSubsetAverage()
DAAL_EXPORT void setLeftSubsetAverage |
( |
modelFPType |
leftSubsetAverage | ) |
|
Sets an average of the weighted responses for the "left" subset
- Parameters
-
[in] | leftSubsetAverage | An average of the weighted responses for the "left" subset |
◆ setRightSubsetAverage()
DAAL_EXPORT void setRightSubsetAverage |
( |
modelFPType |
rightSubsetAverage | ) |
|
Sets an average of the weighted responses for the "right" subset
- Parameters
-
[in] | rightSubsetAverage | An average of the weighted responses for the "right" subset |
◆ setSplitFeature()
void setSplitFeature |
( |
size_t |
splitFeature | ) |
|
Sets the split feature
- Parameters
-
[in] | splitFeature | Index of the split feature |
◆ setSplitValue()
DAAL_EXPORT void setSplitValue |
( |
modelFPType |
splitValue | ) |
|
Sets a value of the feature that defines the split
- Parameters
-
[in] | splitValue | Value of the split feature |
◆ _nFeatures
Number of features in the dataset was used on the training stage
◆ _splitFeature
Index of the feature over which the split is made
◆ _values
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: