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

classifier/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 classification model
21 //--
22 */
23 
24 #ifndef __TREE_CLASSIFIER_TRAVERSE__
25 #define __TREE_CLASSIFIER_TRAVERSE__
26 
27 namespace daal
28 {
29 namespace algorithms
30 {
31 
37 namespace classifier
38 {
39 
43 namespace interface1
44 {
58 class DAAL_EXPORT TreeNodeVisitor
59 {
60 public:
61  virtual ~TreeNodeVisitor(){}
68  virtual bool onLeafNode(size_t level, size_t response) = 0;
76  virtual bool onSplitNode(size_t level, size_t featureIndex, double featureValue) = 0;
77 };
78 
79 } // namespace interface1
80 
81 using interface1::TreeNodeVisitor;
82 
84 } // namespace classifier
85 } // namespace algorithms
86 } // namespace daal
87 
88 #endif
daal::algorithms::classifier::interface1::TreeNodeVisitor
Interface of abstract visitor used in tree traversal methods.
Definition: classifier/tree_traverse.h:58

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