24 #ifndef __DECISION_TREE_REGRESSION_MODEL_H__
25 #define __DECISION_TREE_REGRESSION_MODEL_H__
27 #include "data_management/data/numeric_table.h"
28 #include "data_management/data/aos_numeric_table.h"
29 #include "data_management/data/soa_numeric_table.h"
30 #include "data_management/data/homogen_numeric_table.h"
31 #include "algorithms/model.h"
32 #include "decision_tree_model.h"
33 #include "algorithms/regression/regression_model.h"
34 #include "algorithms/regression/tree_traverse.h"
35 #include "algorithms/tree_utils/tree_utils_regression.h"
44 namespace decision_tree
73 struct DAAL_EXPORT Parameter :
public daal::algorithms::Parameter
78 Parameter() : daal::algorithms::Parameter(),
79 pruning(reducedErrorPruning), maxTreeDepth(0), minObservationsInLeafNodes(5)
85 services::Status check() const DAAL_C11_OVERRIDE;
89 size_t minObservationsInLeafNodes;
102 class DAAL_EXPORT Model : public algorithms::regression::Model
105 DECLARE_MODEL_IFACE(Model, algorithms::regression::Model);
116 typedef services::SharedPtr<ModelImpl> ModelImplPtr;
122 const ModelImpl * impl()
const {
return _impl.get(); }
128 ModelImpl * impl() {
return _impl.get(); }
134 static services::SharedPtr<Model> create(services::Status *stat = NULL);
139 virtual size_t getNumberOfFeatures() const DAAL_C11_OVERRIDE;
146 void traverseDF(algorithms::regression::TreeNodeVisitor& visitor) const;
153 void traverseBF(algorithms::regression::TreeNodeVisitor& visitor) const;
159 void traverseDFS(tree_utils::regression::TreeNodeVisitor& visitor) const;
165 void traverseBFS(tree_utils::regression::TreeNodeVisitor& visitor) const;
168 Model(services::Status &st);
170 services::Status serializeImpl(data_management::InputDataArchive * arch) DAAL_C11_OVERRIDE;
172 services::Status deserializeImpl(const data_management::OutputDataArchive * arch) DAAL_C11_OVERRIDE;
178 typedef services::SharedPtr<Model> ModelPtr;
179 typedef services::SharedPtr<const Model> ModelConstPtr;
183 using interface1::Parameter;
184 using interface1::Model;
185 using interface1::ModelPtr;
186 using interface1::ModelConstPtr;
daal::algorithms::decision_tree::regression::interface1::Model::impl
const ModelImpl * impl() const
Definition: decision_tree_regression_model.h:122
daal::algorithms::decision_tree::reducedErrorPruning
Definition: decision_tree_model.h:52
daal::algorithms::decision_tree::regression::interface1::Model::impl
ModelImpl * impl()
Definition: decision_tree_regression_model.h:128
daal::algorithms::decision_tree::Pruning
Pruning
Pruning method for Decision tree algorithm.
Definition: decision_tree_model.h:49
daal::algorithms::decision_tree::regression::interface1::Parameter::Parameter
Parameter()
Definition: decision_tree_regression_model.h:78
daal::algorithms::decision_tree::regression::interface1::Parameter
Decision tree algorithm parameters.
Definition: decision_tree_regression_model.h:73
daal::algorithms::decision_tree::regression::interface1::Model
Base class for models trained with the Decision tree algorithm
Definition: decision_tree_regression_model.h:102