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

regression/tree_traverse.h
1 /* file: tree_traverse.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 tree regression model
19 //--
20 */
21 
22 #ifndef __TREE_REGRESSION_TRAVERSE__
23 #define __TREE_REGRESSION_TRAVERSE__
24 
25 namespace daal
26 {
27 namespace algorithms
28 {
29 
39 namespace regression
40 {
41 
45 namespace interface1
46 {
60 class DAAL_EXPORT TreeNodeVisitor
61 {
62 public:
63  virtual ~TreeNodeVisitor(){}
70  virtual bool onLeafNode(size_t level, double response) = 0;
78  virtual bool onSplitNode(size_t level, size_t featureIndex, double featureValue) = 0;
79 };
80 
81 } // namespace interface1
82 
83 using interface1::TreeNodeVisitor;
84 
86 } // namespace regression
87 } // namespace algorithms
88 } // namespace daal
89 
90 #endif
daal
Definition: algorithm_base_common.h:31
daal::algorithms::regression::interface1::TreeNodeVisitor
Interface of abstract visitor used in tree traversal methods.
Definition: regression/tree_traverse.h:60

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