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

gbt_classification_predict_types.h
1 /* file: gbt_classification_predict_types.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 base classes used in the prediction stage
19 // of the classifier algorithm
20 //--
21 */
22 
23 #ifndef __GBT_CLASSIFICATION_PREDICT_TYPES_H__
24 #define __GBT_CLASSIFICATION_PREDICT_TYPES_H__
25 
26 #include "algorithms/algorithm.h"
27 #include "algorithms/gradient_boosted_trees/gbt_classification_model.h"
28 #include "algorithms/classifier/classifier_predict_types.h"
29 
30 namespace daal
31 {
32 namespace algorithms
33 {
34 namespace gbt
35 {
36 namespace classification
37 {
46 namespace prediction
47 {
48 
53 enum Method
54 {
55  defaultDense = 0
56 };
57 
61 namespace interface1
62 {
63 
70 /* [Parameter source code] */
71 struct DAAL_EXPORT Parameter : public daal::algorithms::classifier::Parameter
72 {
73  Parameter(size_t nClasses = 2) : daal::algorithms::classifier::Parameter(nClasses), nIterations(0) {}
74  Parameter(const Parameter& o) : daal::algorithms::classifier::Parameter(o), nIterations(o.nIterations){}
75  size_t nIterations;
76 };
77 /* [Parameter source code] */
78 
83 class DAAL_EXPORT Input : public classifier::prediction::Input
84 {
85  typedef classifier::prediction::Input super;
86 public:
87  Input() : super(){}
88  Input(const Input& other) : super(other){}
89  virtual ~Input() {}
90 
91  using super::get;
92  using super::set;
93 
99  data_management::NumericTablePtr get(classifier::prediction::NumericTableInputId id) const;
100 
106  gbt::classification::ModelPtr get(classifier::prediction::ModelInputId id) const;
107 
113  void set(classifier::prediction::NumericTableInputId id, const data_management::NumericTablePtr &ptr);
114 
120  void set(classifier::prediction::ModelInputId id, const gbt::classification::ModelPtr &ptr);
121 
128  services::Status check(const daal::algorithms::Parameter *parameter, int method) const DAAL_C11_OVERRIDE;
129 };
130 
131 } // namespace interface1
132 using interface1::Parameter;
133 using interface1::Input;
134 }
136 }
137 }
138 }
139 }
140 #endif // __GBT_CLASSIFICATION_PREDICT_TYPES_H__
daal::algorithms::gbt::classification::prediction::defaultDense
Definition: gbt_classification_predict_types.h:55
daal::algorithms::gbt::classification::prediction::interface1::Parameter::nIterations
size_t nIterations
Definition: gbt_classification_predict_types.h:75
daal
Definition: algorithm_base_common.h:31
daal::algorithms::classifier::prediction::ModelInputId
ModelInputId
Definition: classifier_predict_types.h:64
daal::algorithms::em_gmm::nIterations
Definition: em_gmm_types.h:97
daal::algorithms::gbt::classification::prediction::Method
Method
Definition: gbt_classification_predict_types.h:53
daal::algorithms::classifier::prediction::NumericTableInputId
NumericTableInputId
Definition: classifier_predict_types.h:53
daal::algorithms::gbt::classification::prediction::interface1::Parameter
Parameters of the prediction algorithm.
Definition: gbt_classification_predict_types.h:71
daal::algorithms::classifier::prediction::prediction
Definition: classifier_predict_types.h:76
daal::algorithms::gbt::classification::prediction::interface1::Input
Input objects in the prediction stage of the GBT_CLASSIFICATION algorithm.
Definition: gbt_classification_predict_types.h:83

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