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

decision_forest_classification_model.h
1 /* file: decision_forest_classification_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 class defining decision_forest classification model.
19 //--
20 */
21 
22 #ifndef __DECISION_FOREST_CLASSIFICATION_MODEL_H__
23 #define __DECISION_FOREST_CLASSIFICATION_MODEL_H__
24 
25 #include "algorithms/algorithm.h"
26 #include "algorithms/classifier/classifier_model.h"
27 #include "algorithms/classifier/tree_traverse.h"
28 #include "algorithms/tree_utils/tree_utils_classification.h"
29 
30 namespace daal
31 {
32 namespace algorithms
33 {
34 namespace decision_forest
35 {
44 namespace classification
45 {
49 namespace interface1
50 {
63 class DAAL_EXPORT Model : public classifier::Model
64 {
65 public:
66  DECLARE_MODEL(Model, classifier::Model)
67 
68 
73  virtual size_t numberOfTrees() const = 0;
74 
81  virtual void traverseDF(size_t iTree, classifier::TreeNodeVisitor& visitor) const = 0;
82 
89  virtual void traverseBF(size_t iTree, classifier::TreeNodeVisitor& visitor) const = 0;
90 
94  virtual void clear() = 0;
95 
101  virtual void traverseDFS(size_t iTree, tree_utils::classification::TreeNodeVisitor& visitor) const = 0;
102 
108  virtual void traverseBFS(size_t iTree, tree_utils::classification::TreeNodeVisitor& visitor) const = 0;
109 
114  virtual size_t getNumberOfTrees() const = 0;
115 
116 protected:
117  Model() : classifier::Model()
118  {}
119 };
121 typedef services::SharedPtr<Model> ModelPtr;
122 } // namespace interface1
123 using interface1::Model;
124 using interface1::ModelPtr;
125 
126 } // namespace classification
127 } // namespace decision_forest
128 } // namespace algorithms
129 } // namespace daal
130 #endif
daal
Definition: algorithm_base_common.h:31
daal::algorithms::decision_forest::classification::interface1::Model
Model of the classifier trained by the decision_forest::training::Batch algorithm.
Definition: decision_forest_classification_model.h:63

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