C++ API Reference for Intel® Data Analytics Acceleration Library 2019 Update 4

decision_forest_regression_model.h
1 /* file: decision_forest_regression_model.h */
2 /*******************************************************************************
3 * Copyright 2014-2019 Intel Corporation.
4 *
5 * This software and the related documents are Intel copyrighted materials, and
6 * your use of them is governed by the express license under which they were
7 * provided to you (License). Unless the License provides otherwise, you may not
8 * use, modify, copy, publish, distribute, disclose or transmit this software or
9 * the related documents without Intel's prior written permission.
10 *
11 * This software and the related documents are provided as is, with no express
12 * or implied warranties, other than those that are expressly stated in the
13 * License.
14 *******************************************************************************/
15 
16 /*
17 //++
18 // Implementation of the class defining the decision forest regression model
19 //--
20 */
21 
22 #ifndef __DECISION_FOREST_REGRESSION_MODEL_H__
23 #define __DECISION_FOREST_REGRESSION_MODEL_H__
24 
25 #include "data_management/data/numeric_table.h"
26 #include "data_management/data/homogen_numeric_table.h"
27 #include "algorithms/regression/regression_model.h"
28 #include "algorithms/regression/tree_traverse.h"
29 #include "algorithms/tree_utils/tree_utils_regression.h"
30 
31 namespace daal
32 {
33 namespace algorithms
34 {
35 namespace decision_forest
36 {
45 namespace regression
46 {
50 namespace interface1
51 {
52 
67 class DAAL_EXPORT Model : public algorithms::regression::Model
68 {
69 public:
70  DECLARE_MODEL(Model, algorithms::regression::Model);
71 
77  virtual size_t numberOfTrees() const = 0;
78 
85  virtual void traverseDF(size_t iTree, algorithms::regression::TreeNodeVisitor& visitor) const = 0;
86 
93  virtual void traverseBF(size_t iTree, algorithms::regression::TreeNodeVisitor& visitor) const = 0;
94 
98  virtual void clear() = 0;
99 
105  virtual void traverseDFS(size_t iTree, tree_utils::regression::TreeNodeVisitor& visitor) const = 0;
106 
112  virtual void traverseBFS(size_t iTree, tree_utils::regression::TreeNodeVisitor& visitor) const = 0;
113 
118  virtual size_t getNumberOfTrees() const = 0;
119 
120 protected:
121  Model();
122 };
123 typedef services::SharedPtr<Model> ModelPtr;
124 typedef services::SharedPtr<const Model> ModelConstPtr;
125 
127 } // namespace interface1
128 using interface1::Model;
129 using interface1::ModelPtr;
130 using interface1::ModelConstPtr;
131 
132 }
133 }
134 }
135 }
136 #endif
daal
Definition: algorithm_base_common.h:31
daal::algorithms::decision_forest::regression::interface1::Model
Base class for models trained with the decision forest regression algorithm
Definition: decision_forest_regression_model.h:67

For more complete information about compiler optimizations, see our Optimization Notice.