Model of the classifier trained by the stump::training::Batch algorithm.
More...
|
template<typename modelFPType > |
static DAAL_EXPORT
services::SharedPtr< Model > | create (size_t nFeatures, services::Status *stat=NULL) |
|
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.
Empty constructor for deserialization
static DAAL_EXPORT services::SharedPtr<Model> create |
( |
size_t |
nFeatures, |
|
|
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 |
[out] | stat | Status 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] | leftSubsetAverage | An 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] | rightSubsetAverage | An average of the weighted responses for the "right" subset |
void setSplitFeature |
( |
size_t |
splitFeature | ) |
|
Sets the split feature
- Parameters
-
[in] | splitFeature | Index of the split feature |
DAAL_EXPORT void setSplitValue |
( |
modelFPType |
splitValue | ) |
|
Sets a value of the feature that defines the split
- Parameters
-
[in] | splitValue | Value of the split feature |
Number of features in the dataset was used on the training stage
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: