22 #ifndef __DECISION_TREE_CLASSIFICATION_TRAINING_TYPES_H__
23 #define __DECISION_TREE_CLASSIFICATION_TRAINING_TYPES_H__
25 #include "algorithms/algorithm.h"
26 #include "data_management/data/data_serialize.h"
27 #include "algorithms/decision_tree/decision_tree_classification_model.h"
28 #include "algorithms/classifier/classifier_training_types.h"
38 namespace decision_tree
44 namespace classification
74 dataForPruning = algorithms::classifier::training::lastInputId + 1,
76 lastInputId = labelsForPruning
89 class DAAL_EXPORT Input :
public classifier::training::Input
93 Input(
const Input& other) : classifier::training::Input(other){}
95 using classifier::training::Input::get;
96 using classifier::training::Input::set;
103 data_management::NumericTablePtr
get(decision_tree::classification::training::InputId id)
const;
110 void set(decision_tree::classification::training::InputId
id,
const data_management::NumericTablePtr & value);
117 services::Status check(
const daal::algorithms::Parameter * parameter,
int method)
const DAAL_C11_OVERRIDE;
120 services::Status checkImpl(
const daal::algorithms::Parameter * parameter)
const;
123 typedef services::SharedPtr<Input> InputPtr;
124 typedef services::SharedPtr<const Input> InputConstPtr;
130 class DAAL_EXPORT Result :
public classifier::training::Result
133 DECLARE_SERIALIZABLE_CAST(Result);
141 ModelPtr
get(classifier::training::ResultId id)
const;
149 template<
typename algorithmFPType>
150 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input * input,
const Parameter * parameter,
int method);
154 template<
typename Archive,
bool onDeserialize>
155 services::Status serialImpl(Archive * arch)
157 return classifier::training::Result::serialImpl<Archive, onDeserialize>(arch);
161 typedef services::SharedPtr<Result> ResultPtr;
162 typedef services::SharedPtr<const Result> ResultConstPtr;
166 using interface1::Input;
167 using interface1::InputPtr;
168 using interface1::InputConstPtr;
169 using interface1::Result;
170 using interface1::ResultPtr;
171 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:130
daal
Definition: algorithm_base_common.h:31
daal::algorithms::decision_tree::classification::training::labelsForPruning
Definition: decision_tree_classification_training_types.h:75
daal::algorithms::decision_tree::classification::training::Method
Method
Computation methods for Decision tree model-based training.
Definition: decision_tree_classification_training_types.h:63
daal::algorithms::decision_tree::classification::training::InputId
InputId
Definition: decision_tree_classification_training_types.h:72
daal::algorithms::classifier::training::ResultId
ResultId
Definition: classifier_training_types.h:80
daal::algorithms::math::abs::value
Definition: abs_types.h:86
daal::algorithms::decision_tree::classification::training::defaultDense
Definition: decision_tree_classification_training_types.h:65
daal::algorithms::decision_tree::classification::training::dataForPruning
Definition: decision_tree_classification_training_types.h:74