48 #ifndef __DECISION_TREE_REGRESSION_MODEL_H__
49 #define __DECISION_TREE_REGRESSION_MODEL_H__
51 #include "data_management/data/numeric_table.h"
52 #include "data_management/data/aos_numeric_table.h"
53 #include "data_management/data/soa_numeric_table.h"
54 #include "data_management/data/homogen_numeric_table.h"
55 #include "algorithms/model.h"
56 #include "decision_tree_model.h"
57 #include "algorithms/regression/regression_model.h"
58 #include "algorithms/regression/tree_traverse.h"
60 using namespace daal::services;
69 namespace decision_tree
98 struct DAAL_EXPORT Parameter :
public daal::algorithms::Parameter
103 Parameter() : daal::algorithms::Parameter(),
104 pruning(reducedErrorPruning), maxTreeDepth(0), minObservationsInLeafNodes(5)
110 services::Status check() const DAAL_C11_OVERRIDE;
114 size_t minObservationsInLeafNodes;
127 class DAAL_EXPORT Model : public algorithms::regression::Model
130 DECLARE_MODEL_IFACE(Model, algorithms::regression::Model);
141 typedef services::SharedPtr<ModelImpl> ModelImplPtr;
147 const ModelImpl * impl()
const {
return _impl.get(); }
153 ModelImpl * impl() {
return _impl.get(); }
159 static services::SharedPtr<Model> create(services::Status *stat = NULL);
164 virtual size_t getNumberOfFeatures() const DAAL_C11_OVERRIDE;
170 void traverseDF(algorithms::regression::TreeNodeVisitor& visitor) const;
176 void traverseBF(algorithms::regression::TreeNodeVisitor& visitor) const;
179 Model(services::Status &st);
181 services::Status serializeImpl(data_management::InputDataArchive * arch) DAAL_C11_OVERRIDE;
183 services::Status deserializeImpl(const data_management::OutputDataArchive * arch) DAAL_C11_OVERRIDE;
189 typedef services::SharedPtr<Model> ModelPtr;
190 typedef services::SharedPtr<const Model> ModelConstPtr;
194 using interface1::Parameter;
195 using interface1::Model;
196 using interface1::ModelPtr;
197 using interface1::ModelConstPtr;
daal::algorithms::decision_tree::regression::interface1::Parameter::Parameter
Parameter()
Definition: decision_tree_regression_model.h:103
daal
Definition: algorithm_base_common.h:57
daal::algorithms::decision_tree::reducedErrorPruning
Definition: decision_tree_model.h:76
daal::algorithms::decision_tree::regression::interface1::Parameter
Decision tree algorithm parameters.
Definition: decision_tree_regression_model.h:98
daal::algorithms::decision_tree::regression::interface1::Model::impl
const ModelImpl * impl() const
Definition: decision_tree_regression_model.h:147
daal::algorithms::decision_tree::Pruning
Pruning
Pruning method for Decision tree algorithm.
Definition: decision_tree_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:127
daal::algorithms::decision_tree::regression::interface1::Model::impl
ModelImpl * impl()
Definition: decision_tree_regression_model.h:153
daal::services
Contains classes that implement service functionality, including error handling, memory allocation...
Definition: collection.h:51