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

tree_utils_classification.h
1 /* file: tree_utils_classification.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_UTILS_CLASSIFICATION__
25 #define __TREE_UTILS_CLASSIFICATION__
26 
27 #include "tree_utils.h"
28 
29 namespace daal
30 {
31 namespace algorithms
32 {
33 
39 namespace tree_utils
40 {
41 
42 namespace classification
43 {
44 
48 namespace interface1
49 {
50 
55 struct DAAL_EXPORT LeafNodeDescriptor : public NodeDescriptor
56 {
57  size_t label;
58 };
59 
60 typedef daal::algorithms::tree_utils::TreeNodeVisitor<LeafNodeDescriptor> TreeNodeVisitor;
61 typedef daal::algorithms::tree_utils::SplitNodeDescriptor SplitNodeDescriptor;
62 
63 } // namespace interface1
64 
68 namespace interface2
69 {
74 struct DAAL_EXPORT LeafNodeDescriptor : public NodeDescriptor
75 {
76  size_t label;
77  const double * prob;
78 };
79 
80 typedef daal::algorithms::tree_utils::TreeNodeVisitor<LeafNodeDescriptor> TreeNodeVisitor;
81 typedef daal::algorithms::tree_utils::SplitNodeDescriptor SplitNodeDescriptor;
82 
83 } // namespace interface2
84 using interface2::TreeNodeVisitor;
85 using interface2::SplitNodeDescriptor;
86 using interface2::LeafNodeDescriptor;
87 } // namespace classification
88 } // namespace tree_utils
89 } // namespace algorithms
90 } // namespace daal
91 
92 #endif
daal::algorithms::tree_utils::classification::interface2::LeafNodeDescriptor::label
size_t label
Definition: tree_utils_classification.h:76
daal::algorithms::tree_utils::classification::interface1::LeafNodeDescriptor::label
size_t label
Definition: tree_utils_classification.h:57
daal::algorithms::tree_utils::classification::interface2::LeafNodeDescriptor::prob
const double * prob
Definition: tree_utils_classification.h:77
daal::algorithms::tree_utils::classification::interface2::LeafNodeDescriptor
Struct containing description of leaf node in classification descision tree
Definition: tree_utils_classification.h:74
daal::algorithms::tree_utils::classification::interface1::LeafNodeDescriptor
Struct containing description of leaf node in classification descision tree
Definition: tree_utils_classification.h:55

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