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

gbt_classification_predict_types.h
1 /* file: gbt_classification_predict_types.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 base classes used in the prediction stage
21 // of the classifier algorithm
22 //--
23 */
24 
25 #ifndef __GBT_CLASSIFICATION_PREDICT_TYPES_H__
26 #define __GBT_CLASSIFICATION_PREDICT_TYPES_H__
27 
28 #include "algorithms/algorithm.h"
29 #include "algorithms/gradient_boosted_trees/gbt_classification_model.h"
30 #include "algorithms/classifier/classifier_predict_types.h"
31 
32 namespace daal
33 {
34 namespace algorithms
35 {
36 namespace gbt
37 {
38 namespace classification
39 {
48 namespace prediction
49 {
50 
55 enum Method
56 {
57  defaultDense = 0
58 };
59 
63 namespace interface1
64 {
65 
72 /* [interface1::Parameter source code] */
73 struct DAAL_EXPORT Parameter : public daal::algorithms::classifier::interface1::Parameter
74 {
75  DAAL_DEPRECATED Parameter(size_t nClasses = 2) : daal::algorithms::classifier::interface1::Parameter(nClasses), nIterations(0) {}
76  DAAL_DEPRECATED Parameter(const Parameter& o) : daal::algorithms::classifier::interface1::Parameter(o), nIterations(o.nIterations){}
77  size_t nIterations;
78 };
79 /* [interface1::Parameter source code] */
80 }
81 
85 namespace interface2
86 {
87 
94 /* [Parameter source code] */
95 struct DAAL_EXPORT Parameter : public daal::algorithms::classifier::Parameter
96 {
97  Parameter(size_t nClasses = 2) : daal::algorithms::classifier::Parameter(nClasses), nIterations(0) {}
98  Parameter(const Parameter& o) : daal::algorithms::classifier::Parameter(o), nIterations(o.nIterations){}
99  size_t nIterations;
100 };
101 /* [Parameter source code] */
102 }
103 
107 namespace interface1
108 {
113 class DAAL_EXPORT Input : public classifier::prediction::Input
114 {
115  typedef classifier::prediction::Input super;
116 public:
117  Input() : super(){}
118  Input(const Input& other) : super(other){}
119  virtual ~Input() {}
120 
121  using super::get;
122  using super::set;
123 
129  data_management::NumericTablePtr get(classifier::prediction::NumericTableInputId id) const;
130 
136  gbt::classification::ModelPtr get(classifier::prediction::ModelInputId id) const;
137 
143  void set(classifier::prediction::NumericTableInputId id, const data_management::NumericTablePtr &ptr);
144 
150  void set(classifier::prediction::ModelInputId id, const gbt::classification::ModelPtr &ptr);
151 
158  services::Status check(const daal::algorithms::Parameter *parameter, int method) const DAAL_C11_OVERRIDE;
159 };
160 
161 } // namespace interface1
162 using interface2::Parameter;
163 using interface1::Input;
164 }
166 }
167 }
168 }
169 }
170 #endif // __GBT_CLASSIFICATION_PREDICT_TYPES_H__
daal::algorithms::gbt::classification::prediction::defaultDense
Definition: gbt_classification_predict_types.h:57
daal::algorithms::neural_networks::prediction::prediction
Definition: neural_networks_prediction_result.h:55
daal::algorithms::gbt::classification::prediction::interface1::Parameter::nIterations
size_t nIterations
Definition: gbt_classification_predict_types.h:77
daal::algorithms::gbt::classification::prediction::interface2::Parameter
Parameters of the prediction algorithm.
Definition: gbt_classification_predict_types.h:95
daal::algorithms::classifier::prediction::NumericTableInputId
NumericTableInputId
Definition: classifier_predict_types.h:55
daal::algorithms::gbt::classification::prediction::interface2::Parameter::nIterations
size_t nIterations
Definition: gbt_classification_predict_types.h:99
daal::algorithms::classifier::interface1::Parameter
Base class for the parameters of the classification algorithm.
Definition: classifier_model.h:69
daal::algorithms::classifier::prediction::ModelInputId
ModelInputId
Definition: classifier_predict_types.h:66
daal::algorithms::gbt::classification::prediction::interface1::Parameter
Parameters of the prediction algorithm.
Definition: gbt_classification_predict_types.h:73
daal::algorithms::gbt::classification::prediction::Method
Method
Definition: gbt_classification_predict_types.h:55
daal::algorithms::gbt::classification::prediction::interface1::Input
Input objects in the prediction stage of the GBT_CLASSIFICATION algorithm.
Definition: gbt_classification_predict_types.h:113
daal::algorithms::em_gmm::nIterations
Definition: em_gmm_types.h:99

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