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

logitboost_predict_types.h
1 /* file: logitboost_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 __LOGITBOOST_PREDICT_TYPES_H__
26 #define __LOGITBOOST_PREDICT_TYPES_H__
27 
28 #include "algorithms/algorithm.h"
29 #include "algorithms/boosting/logitboost_model.h"
30 #include "algorithms/classifier/classifier_predict_types.h"
31 
32 #include "data_management/data/homogen_numeric_table.h"
33 
34 namespace daal
35 {
36 namespace algorithms
37 {
38 namespace logitboost
39 {
48 namespace prediction
49 {
50 
54 namespace interface1
55 {
56 
61 class DAAL_EXPORT Input : public classifier::prediction::interface1::Input
62 {
63  typedef classifier::prediction::interface1::Input super;
64 public:
65 
66  DAAL_DEPRECATED Input() : classifier::prediction::interface1::Input() {}
67  DAAL_DEPRECATED Input(const Input& other) : classifier::prediction::interface1::Input(other){}
68  DAAL_DEPRECATED_VIRTUAL virtual ~Input() {}
69 
70  using super::get;
71  using super::set;
72 
78  DAAL_DEPRECATED data_management::NumericTablePtr get(classifier::prediction::NumericTableInputId id) const;
79 
85  DAAL_DEPRECATED logitboost::interface1::ModelPtr get(classifier::prediction::ModelInputId id) const;
86 
92  DAAL_DEPRECATED void set(classifier::prediction::NumericTableInputId id, const data_management::NumericTablePtr &ptr);
93 
99  DAAL_DEPRECATED void set(classifier::prediction::ModelInputId id, const logitboost::interface1::ModelPtr &ptr);
100 
106  DAAL_DEPRECATED services::Status check(const daal::algorithms::Parameter *parameter, int method) const DAAL_C11_OVERRIDE;
107 
108 };
109 
110 } // namespace interface1
111 
115 namespace interface2
116 {
117 
122 class DAAL_EXPORT Input : public classifier::prediction::Input
123 {
124  typedef classifier::prediction::Input super;
125 public:
126 
127  Input() : classifier::prediction::Input() {}
128  Input(const Input& other) : classifier::prediction::Input(other){}
129  virtual ~Input() {}
130 
131  using super::get;
132  using super::set;
133 
139  data_management::NumericTablePtr get(classifier::prediction::NumericTableInputId id) const;
140 
146  logitboost::ModelPtr get(classifier::prediction::ModelInputId id) const;
147 
153  void set(classifier::prediction::NumericTableInputId id, const data_management::NumericTablePtr &ptr);
154 
160  void set(classifier::prediction::ModelInputId id, const logitboost::ModelPtr &ptr);
161 
167  services::Status check(const daal::algorithms::Parameter *parameter, int method) const DAAL_C11_OVERRIDE;
168 
169 };
170 
171 } // namespace interface2
172 using interface2::Input;
173 }
175 }
176 }
177 }
178 #endif // __LOGITBOOST_PREDICT_TYPES_H__
daal::algorithms::neural_networks::prediction::prediction
Definition: neural_networks_prediction_result.h:55
daal::algorithms::classifier::prediction::interface1::Input
Input objects in the prediction stage of the classification algorithm.
Definition: classifier_predict_types.h:111
daal::algorithms::classifier::prediction::NumericTableInputId
NumericTableInputId
Definition: classifier_predict_types.h:55
daal::algorithms::logitboost::prediction::interface1::Input
Input objects in the prediction stage of the logitboost algorithm.
Definition: logitboost_predict_types.h:61
daal::algorithms::classifier::prediction::ModelInputId
ModelInputId
Definition: classifier_predict_types.h:66
daal::algorithms::logitboost::prediction::interface2::Input
Input objects in the prediction stage of the logitboost algorithm.
Definition: logitboost_predict_types.h:122

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