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

regression/tree_traverse.h
1 /* file: tree_traverse.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 tree regression model
21 //--
22 */
23 
24 #ifndef __TREE_REGRESSION_TRAVERSE__
25 #define __TREE_REGRESSION_TRAVERSE__
26 
27 namespace daal
28 {
29 namespace algorithms
30 {
31 
41 namespace regression
42 {
43 
47 namespace interface1
48 {
62 class DAAL_EXPORT TreeNodeVisitor
63 {
64 public:
65  virtual ~TreeNodeVisitor(){}
72  virtual bool onLeafNode(size_t level, double response) = 0;
80  virtual bool onSplitNode(size_t level, size_t featureIndex, double featureValue) = 0;
81 };
82 
83 } // namespace interface1
84 
85 using interface1::TreeNodeVisitor;
86 
88 } // namespace regression
89 } // namespace algorithms
90 } // namespace daal
91 
92 #endif
daal::algorithms::regression::interface1::TreeNodeVisitor
Interface of abstract visitor used in tree traversal methods.
Definition: regression/tree_traverse.h:62

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