22 #ifndef __DECISION_TREE_REGRESSION_MODEL_H__
23 #define __DECISION_TREE_REGRESSION_MODEL_H__
25 #include "data_management/data/numeric_table.h"
26 #include "data_management/data/aos_numeric_table.h"
27 #include "data_management/data/soa_numeric_table.h"
28 #include "data_management/data/homogen_numeric_table.h"
29 #include "algorithms/model.h"
30 #include "decision_tree_model.h"
31 #include "algorithms/regression/regression_model.h"
32 #include "algorithms/regression/tree_traverse.h"
41 namespace decision_tree
70 struct DAAL_EXPORT Parameter :
public daal::algorithms::Parameter
75 Parameter() : daal::algorithms::Parameter(),
76 pruning(reducedErrorPruning), maxTreeDepth(0), minObservationsInLeafNodes(5)
82 services::Status check() const DAAL_C11_OVERRIDE;
86 size_t minObservationsInLeafNodes;
99 class DAAL_EXPORT Model : public algorithms::regression::Model
102 DECLARE_MODEL_IFACE(Model, algorithms::regression::Model);
113 typedef services::SharedPtr<ModelImpl> ModelImplPtr;
119 const ModelImpl * impl()
const {
return _impl.get(); }
125 ModelImpl * impl() {
return _impl.get(); }
131 static services::SharedPtr<Model> create(services::Status *stat = NULL);
136 virtual size_t getNumberOfFeatures() const DAAL_C11_OVERRIDE;
142 void traverseDF(algorithms::regression::TreeNodeVisitor& visitor) const;
148 void traverseBF(algorithms::regression::TreeNodeVisitor& visitor) const;
151 Model(services::Status &st);
153 services::Status serializeImpl(data_management::InputDataArchive * arch) DAAL_C11_OVERRIDE;
155 services::Status deserializeImpl(const data_management::OutputDataArchive * arch) DAAL_C11_OVERRIDE;
161 typedef services::SharedPtr<Model> ModelPtr;
162 typedef services::SharedPtr<const Model> ModelConstPtr;
166 using interface1::Parameter;
167 using interface1::Model;
168 using interface1::ModelPtr;
169 using interface1::ModelConstPtr;
daal::algorithms::decision_tree::regression::interface1::Parameter::Parameter
Parameter()
Definition: decision_tree_regression_model.h:75
daal
Definition: algorithm_base_common.h:31
daal::algorithms::decision_tree::reducedErrorPruning
Definition: decision_tree_model.h:50
daal::algorithms::decision_tree::regression::interface1::Parameter
Decision tree algorithm parameters.
Definition: decision_tree_regression_model.h:70
daal::algorithms::decision_tree::regression::interface1::Model::impl
const ModelImpl * impl() const
Definition: decision_tree_regression_model.h:119
daal::algorithms::decision_tree::Pruning
Pruning
Pruning method for Decision tree algorithm.
Definition: decision_tree_model.h:47
daal::algorithms::decision_tree::regression::interface1::Model
Base class for models trained with the Decision tree algorithm
Definition: decision_tree_regression_model.h:99
daal::algorithms::decision_tree::regression::interface1::Model::impl
ModelImpl * impl()
Definition: decision_tree_regression_model.h:125