C++ API Reference for Intel® Data Analytics Acceleration Library 2019

weak_learner_training_batch.h
1 /* file: weak_learner_training_batch.h */
2 /*******************************************************************************
3 * Copyright 2014-2018 Intel Corporation.
4 *
5 * This software and the related documents are Intel copyrighted materials, and
6 * your use of them is governed by the express license under which they were
7 * provided to you (License). Unless the License provides otherwise, you may not
8 * use, modify, copy, publish, distribute, disclose or transmit this software or
9 * the related documents without Intel's prior written permission.
10 *
11 * This software and the related documents are provided as is, with no express
12 * or implied warranties, other than those that are expressly stated in the
13 * License.
14 *******************************************************************************/
15 
16 /*
17 //++
18 // Implementation of base classes defining the interface for training the
19 // weak learner model in the batch processing mode.
20 //--
21 */
22 
23 #ifndef __WEAK_LEARNER_TRAINING_BATCH_H__
24 #define __WEAK_LEARNER_TRAINING_BATCH_H__
25 
26 #include "algorithms/classifier/classifier_training_batch.h"
27 #include "algorithms/weak_learner/weak_learner_training_types.h"
28 
29 namespace daal
30 {
31 namespace algorithms
32 {
33 namespace weak_learner
34 {
35 namespace training
36 {
37 
38 namespace interface1
39 {
58 class DAAL_EXPORT Batch : public classifier::training::Batch
59 {
60 public:
61  typedef classifier::training::Batch super;
62 
63  typedef super::InputType InputType;
64  typedef super::ParameterType ParameterType;
65  typedef algorithms::weak_learner::training::Result ResultType;
66 
67  Batch() {}
68 
75  Batch(const Batch &other) : classifier::training::Batch(other) {}
76 
77  virtual ~Batch() {}
78 
83  weak_learner::training::ResultPtr getResult()
84  {
85  return services::staticPointerCast<ResultType, classifier::training::Result>(_result);
86  }
87 
93  services::SharedPtr<Batch> clone() const
94  {
95  return services::SharedPtr<Batch>(cloneImpl());
96  }
97 
98 protected:
99  virtual Batch * cloneImpl() const DAAL_C11_OVERRIDE = 0;
100 };
102 } // namespace interface1
103 using interface1::Batch;
104 
105 } // namespace daal::algorithms::weak_learner::training
106 }
107 }
108 } // namespace daal
109 #endif // __WEAK_LEARNER_TRAINING_BATCH_H__
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:58
daal
Definition: algorithm_base_common.h:31
daal::algorithms::weak_learner::training::interface1::Batch::Batch
Batch(const Batch &other)
Definition: weak_learner_training_batch.h:75
daal::algorithms::weak_learner::training::interface1::Batch::getResult
weak_learner::training::ResultPtr getResult()
Definition: weak_learner_training_batch.h:83
daal::algorithms::weak_learner::training::interface1::Batch::clone
services::SharedPtr< Batch > clone() const
Definition: weak_learner_training_batch.h:93

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