C++ API Reference for Intel® Data Analytics Acceleration Library 2018 Update 3

gbt_classification_model.h
1 /* file: gbt_classification_model.h */
2 /*******************************************************************************
3 * Copyright 2014-2018 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 gradient boosted trees classification model.
19 //--
20 */
21 
22 #ifndef __GBT_CLASSIFICATION_MODEL_H__
23 #define __GBT_CLASSIFICATION_MODEL_H__
24 
25 #include "algorithms/classifier/classifier_model.h"
26 #include "algorithms/regression/tree_traverse.h"
27 
28 namespace daal
29 {
30 namespace algorithms
31 {
32 namespace gbt
33 {
42 namespace classification
43 {
47 namespace interface1
48 {
61 class DAAL_EXPORT Model : public classifier::Model
62 {
63 public:
64  DECLARE_MODEL(Model, classifier::Model)
65 
66 
71  static services::SharedPtr<Model> create(size_t nFeatures, services::Status *stat = NULL);
72 
77  virtual size_t numberOfTrees() const = 0;
78 
84  virtual void traverseDF(size_t iTree, regression::TreeNodeVisitor& visitor) const = 0;
85 
91  virtual void traverseBF(size_t iTree, regression::TreeNodeVisitor& visitor) const = 0;
92 
96  virtual void clear() = 0;
97 
98 protected:
99  Model() : classifier::Model()
100  {}
101 };
103 typedef services::SharedPtr<Model> ModelPtr;
104 } // namespace interface1
105 using interface1::Model;
106 using interface1::ModelPtr;
107 
108 } // namespace classification
109 } // namespace gbt
110 } // namespace algorithms
111 } // namespace daal
112 #endif
daal
Definition: algorithm_base_common.h:31
daal::algorithms::gbt::classification::interface1::Model
Model of the classifier trained by the gbt::training::Batch algorithm.
Definition: gbt_classification_model.h:61

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