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

weak_learner_predict.h
1 /* file: weak_learner_predict.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 base classes defining the interface for prediction
21 // based on the weak learner model.
22 //--
23 */
24 
25 #ifndef __WEAK_LEARNER_PREDICT_H__
26 #define __WEAK_LEARNER_PREDICT_H__
27 
28 #include "algorithms/classifier/classifier_predict.h"
29 
30 namespace daal
31 {
32 namespace algorithms
33 {
34 namespace weak_learner
35 {
45 namespace prediction
46 {
47 
51 namespace interface1
52 {
72 class Batch : public classifier::prediction::interface1::Batch
73 {
74 public:
75  typedef classifier::prediction::interface1::Batch super;
76 
77  typedef super::InputType InputType;
78  typedef super::ParameterType ParameterType;
79  typedef super::ResultType ResultType;
80 
81  Batch() {}
82 
89  Batch(const Batch &other) : classifier::prediction::interface1::Batch(other) {}
90 
91  virtual ~Batch() {}
92 
98  services::SharedPtr<Batch> clone() const
99  {
100  return services::SharedPtr<Batch>(cloneImpl());
101  }
102 
103 protected:
104  virtual Batch * cloneImpl() const DAAL_C11_OVERRIDE = 0;
105 };
107 } // namespace interface1
108 using interface1::Batch;
109 
110 } // namespace daal::algorithms::weak_learner::prediction
111 }
112 }
113 } // namespace daal
114 #endif // __WEAK_LEARNER_PREDICT_H__
daal::algorithms::neural_networks::prediction::prediction
Definition: neural_networks_prediction_result.h:55
daal::algorithms::weak_learner::prediction::interface1::Batch::clone
services::SharedPtr< Batch > clone() const
Definition: weak_learner_predict.h:98
daal::algorithms::classifier::prediction::interface1::Input
Input objects in the prediction stage of the classification algorithm.
Definition: classifier_predict_types.h:111
daal::algorithms::weak_learner::prediction::interface1::Batch::Batch
Batch(const Batch &other)
Definition: weak_learner_predict.h:89
daal::algorithms::weak_learner::prediction::interface1::Batch
Base class for making predictions based on the weak learner model
Definition: weak_learner_predict.h:72
daal::algorithms::classifier::prediction::interface1::Result
Provides methods to access prediction results obtained with the compute() method of the classifier pr...
Definition: classifier_predict_types.h:168
daal::algorithms::classifier::interface1::Parameter
Base class for the parameters of the classification algorithm.
Definition: classifier_model.h:69
daal::algorithms::classifier::prediction::interface1::Batch
Base class for making predictions based on the model of the classification algorithms.
Definition: classifier_predict.h:61

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