C++ API Reference for Intel® Data Analytics Acceleration Library 2020 Update 1

decision_forest_regression_model.h
1 /* file: decision_forest_regression_model.h */
2 /*******************************************************************************
3 * Copyright 2014-2020 Intel Corporation
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *******************************************************************************/
17 
18 /*
19 //++
20 // Implementation of the class defining the decision forest regression model
21 //--
22 */
23 
24 #ifndef __DECISION_FOREST_REGRESSION_MODEL_H__
25 #define __DECISION_FOREST_REGRESSION_MODEL_H__
26 
27 #include "data_management/data/numeric_table.h"
28 #include "data_management/data/homogen_numeric_table.h"
29 #include "algorithms/regression/regression_model.h"
30 #include "algorithms/regression/tree_traverse.h"
31 #include "algorithms/tree_utils/tree_utils_regression.h"
32 
33 namespace daal
34 {
35 namespace algorithms
36 {
37 namespace decision_forest
38 {
47 namespace regression
48 {
52 namespace interface1
53 {
54 
69 class DAAL_EXPORT Model : public algorithms::regression::Model
70 {
71 public:
72  DECLARE_MODEL(Model, algorithms::regression::Model);
73 
79  virtual size_t numberOfTrees() const = 0;
80 
87  virtual void traverseDF(size_t iTree, algorithms::regression::TreeNodeVisitor& visitor) const = 0;
88 
95  virtual void traverseBF(size_t iTree, algorithms::regression::TreeNodeVisitor& visitor) const = 0;
96 
100  virtual void clear() = 0;
101 
107  virtual void traverseDFS(size_t iTree, tree_utils::regression::TreeNodeVisitor& visitor) const = 0;
108 
114  virtual void traverseBFS(size_t iTree, tree_utils::regression::TreeNodeVisitor& visitor) const = 0;
115 
120  virtual size_t getNumberOfTrees() const = 0;
121 
122 protected:
123  Model();
124 };
125 typedef services::SharedPtr<Model> ModelPtr;
126 typedef services::SharedPtr<const Model> ModelConstPtr;
127 
129 } // namespace interface1
130 using interface1::Model;
131 using interface1::ModelPtr;
132 using interface1::ModelConstPtr;
133 
134 }
135 }
136 }
137 }
138 #endif
daal::algorithms::decision_forest::regression::interface1::Model
Base class for models trained with the decision forest regression algorithm
Definition: decision_forest_regression_model.h:69

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