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

weak_learner_training_batch.h
1 /* file: weak_learner_training_batch.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 training the
21 // weak learner model in the batch processing mode.
22 //--
23 */
24 
25 #ifndef __WEAK_LEARNER_TRAINING_BATCH_H__
26 #define __WEAK_LEARNER_TRAINING_BATCH_H__
27 
28 #include "algorithms/classifier/classifier_training_batch.h"
29 #include "algorithms/weak_learner/weak_learner_training_types.h"
30 
31 namespace daal
32 {
33 namespace algorithms
34 {
35 namespace weak_learner
36 {
37 namespace training
38 {
39 
40 namespace interface1
41 {
60 class DAAL_EXPORT Batch : public classifier::training::interface1::Batch
61 {
62 public:
63  typedef classifier::training::interface1::Batch super;
64 
65  typedef super::InputType InputType;
66  typedef super::ParameterType ParameterType;
67  typedef algorithms::weak_learner::training::Result ResultType;
68 
69  Batch() {}
70 
77  Batch(const Batch &other) : classifier::training::interface1::Batch(other) {}
78 
79  virtual ~Batch() {}
80 
85  weak_learner::training::ResultPtr getResult()
86  {
87  return services::staticPointerCast<ResultType, classifier::training::interface1::Result>(_result);
88  }
89 
95  services::SharedPtr<Batch> clone() const
96  {
97  return services::SharedPtr<Batch>(cloneImpl());
98  }
99 
100 protected:
101  virtual Batch * cloneImpl() const DAAL_C11_OVERRIDE = 0;
102 };
104 } // namespace interface1
105 using interface1::Batch;
106 
107 } // namespace daal::algorithms::weak_learner::training
108 }
109 }
110 } // namespace daal
111 #endif // __WEAK_LEARNER_TRAINING_BATCH_H__
daal::algorithms::weak_learner::training::interface1::Batch::clone
services::SharedPtr< Batch > clone() const
Definition: weak_learner_training_batch.h:95
daal::algorithms::classifier::training::interface1::Result
Provides methods to access final results obtained with the compute() method in the batch processing m...
Definition: classifier_training_types.h:198
daal::algorithms::classifier::training::interface1::Batch
Algorithm class for training the classifier model.
Definition: classifier_training_batch.h:58
daal::algorithms::weak_learner::training::interface1::Batch
Base class for training the weak learner model in the batch processing mode
Definition: weak_learner_training_batch.h:60
daal::algorithms::weak_learner::training::interface1::Batch::Batch
Batch(const Batch &other)
Definition: weak_learner_training_batch.h:77
daal::algorithms::weak_learner::training::interface1::Batch::getResult
weak_learner::training::ResultPtr getResult()
Definition: weak_learner_training_batch.h:85
daal::algorithms::classifier::interface1::Parameter
Base class for the parameters of the classification algorithm.
Definition: classifier_model.h:69
daal::algorithms::classifier::training::interface1::Input
Base class for the input objects in the training stage of the classification algorithms.
Definition: classifier_training_types.h:110

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