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

adaboost_predict_types.h
1 /* file: adaboost_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 __ADABOOST_PREDICT_TYPES_H__
26 #define __ADABOOST_PREDICT_TYPES_H__
27 
28 #include "algorithms/algorithm.h"
29 #include "algorithms/boosting/adaboost_model.h"
30 
31 namespace daal
32 {
33 namespace algorithms
34 {
35 namespace adaboost
36 {
43 namespace prediction
44 {
45 
46 namespace interface1
47 {
48 
53 class DAAL_EXPORT Input : public classifier::prediction::interface1::Input
54 {
55  typedef classifier::prediction::interface1::Input super;
56 public:
57  DAAL_DEPRECATED Input() {}
58  DAAL_DEPRECATED Input(const Input& other) : classifier::prediction::interface1::Input(other){}
59  DAAL_DEPRECATED_VIRTUAL virtual ~Input() {}
60 
61  using super::get;
62  using super::set;
63 
69  DAAL_DEPRECATED data_management::NumericTablePtr get(classifier::prediction::NumericTableInputId id) const;
70 
76  DAAL_DEPRECATED daal::algorithms::adaboost::interface1::ModelPtr get(classifier::prediction::ModelInputId id) const;
77 
83  DAAL_DEPRECATED void set(classifier::prediction::NumericTableInputId id, const data_management::NumericTablePtr &ptr);
84 
90  DAAL_DEPRECATED void set(classifier::prediction::ModelInputId id, const daal::algorithms::adaboost::interface1::ModelPtr &ptr);
91 
97  DAAL_DEPRECATED services::Status check(const daal::algorithms::Parameter *parameter, int method) const DAAL_C11_OVERRIDE;
98 
99 };
100 } // namespace interface1
101 
102 namespace interface2
103 {
104 
109 class DAAL_EXPORT Input : public classifier::prediction::Input
110 {
111  typedef classifier::prediction::Input super;
112 public:
113  Input() {}
114  Input(const Input& other) : classifier::prediction::Input(other){}
115  virtual ~Input() {}
116 
117  using super::get;
118  using super::set;
119 
125  data_management::NumericTablePtr get(classifier::prediction::NumericTableInputId id) const;
126 
132  ModelPtr get(classifier::prediction::ModelInputId id) const;
133 
139  void set(classifier::prediction::NumericTableInputId id, const data_management::NumericTablePtr &ptr);
140 
146  void set(classifier::prediction::ModelInputId id, const ModelPtr &ptr);
147 
153  services::Status check(const daal::algorithms::Parameter *parameter, int method) const DAAL_C11_OVERRIDE;
154 
155 };
156 
157 } // namespace interface2
158 using interface2::Input;
159 }
161 }
162 }
163 }
164 #endif // __ADABOOST_PREDICT_TYPES_H__
daal::algorithms::adaboost::prediction::interface2::Input
Input objects in the prediction stage of the adaboost algorithm.
Definition: adaboost_predict_types.h:109
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::adaboost::prediction::interface1::Input
Input objects in the prediction stage of the adaboost algorithm.
Definition: adaboost_predict_types.h:53
daal::algorithms::classifier::prediction::ModelInputId
ModelInputId
Definition: classifier_predict_types.h:66

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