24 #ifndef __DECISION_TREE_CLASSIFICATION_TRAINING_TYPES_H__
25 #define __DECISION_TREE_CLASSIFICATION_TRAINING_TYPES_H__
27 #include "algorithms/algorithm.h"
28 #include "data_management/data/data_serialize.h"
29 #include "algorithms/decision_tree/decision_tree_classification_model.h"
30 #include "algorithms/classifier/classifier_training_types.h"
40 namespace decision_tree
46 namespace classification
76 dataForPruning = algorithms::classifier::training::lastInputId + 1,
78 lastInputId = labelsForPruning
91 class DAAL_EXPORT Input :
public classifier::training::Input
95 Input(
const Input& other) : classifier::training::Input(other){}
97 using classifier::training::Input::get;
98 using classifier::training::Input::set;
105 data_management::NumericTablePtr
get(decision_tree::classification::training::InputId id)
const;
112 void set(decision_tree::classification::training::InputId
id,
const data_management::NumericTablePtr & value);
119 services::Status check(
const daal::algorithms::Parameter * parameter,
int method)
const DAAL_C11_OVERRIDE;
122 services::Status checkImpl(
const daal::algorithms::Parameter * parameter)
const;
125 typedef services::SharedPtr<Input> InputPtr;
126 typedef services::SharedPtr<const Input> InputConstPtr;
132 class DAAL_EXPORT Result :
public classifier::training::Result
135 DECLARE_SERIALIZABLE_CAST(Result);
143 ModelPtr
get(classifier::training::ResultId id)
const;
151 template<
typename algorithmFPType>
152 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input * input,
const decision_tree::classification::Parameter * parameter,
int method);
160 template<
typename algorithmFPType>
161 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input * input,
const decision_tree::classification::interface1::Parameter * parameter,
int method);
164 template<
typename Archive,
bool onDeserialize>
165 services::Status serialImpl(Archive * arch)
167 return classifier::training::Result::serialImpl<Archive, onDeserialize>(arch);
171 typedef services::SharedPtr<Result> ResultPtr;
172 typedef services::SharedPtr<const Result> ResultConstPtr;
176 using interface1::Input;
177 using interface1::InputPtr;
178 using interface1::InputConstPtr;
179 using interface1::Result;
180 using interface1::ResultPtr;
181 using interface1::ResultConstPtr;
daal::algorithms::decision_tree::classification::training::interface1::Result
Provides methods to access the result obtained with the compute() method of Decision tree model-based...
Definition: decision_tree_classification_training_types.h:132
daal::algorithms::decision_tree::classification::training::labelsForPruning
Definition: decision_tree_classification_training_types.h:77
daal::algorithms::decision_tree::classification::training::InputId
InputId
Definition: decision_tree_classification_training_types.h:74
daal::algorithms::decision_tree::classification::interface1::Parameter
Decision tree algorithm parameters.
Definition: decision_tree_classification_model.h:84
daal::algorithms::decision_tree::classification::training::Method
Method
Computation methods for Decision tree model-based training.
Definition: decision_tree_classification_training_types.h:65
daal::algorithms::decision_tree::classification::training::dataForPruning
Definition: decision_tree_classification_training_types.h:76
daal::algorithms::decision_tree::classification::training::defaultDense
Definition: decision_tree_classification_training_types.h:67
daal::algorithms::math::abs::value
Definition: abs_types.h:88
daal::algorithms::decision_tree::classification::training::interface1::Input
Base class for the input objects in the training stage of the classification algorithms.
Definition: decision_tree_classification_training_types.h:91
daal::algorithms::classifier::training::ResultId
ResultId
Definition: classifier_training_types.h:82