C++ API Reference for Intel® Data Analytics Acceleration Library 2018 Update 3

weak_learner_training_types.h
1 /* file: weak_learner_training_types.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 the base classes used on the training stage
19 // of weak learners algorithms
20 //--
21 */
22 
23 #ifndef __WEAK_LEARNER_TRAINING_TYPES_H__
24 #define __WEAK_LEARNER_TRAINING_TYPES_H__
25 
26 #include "algorithms/algorithm.h"
27 #include "algorithms/weak_learner/weak_learner_model.h"
28 
29 namespace daal
30 {
31 namespace algorithms
32 {
36 namespace weak_learner
37 {
47 namespace training
48 {
49 
53 namespace interface1
54 {
60 class DAAL_EXPORT Result : public daal::algorithms::classifier::training::Result
61 {
62 public:
63  DECLARE_SERIALIZABLE_CAST(Result);
64  Result();
65  virtual ~Result() {}
66 
72  daal::algorithms::weak_learner::ModelPtr get(classifier::training::ResultId id) const;
73 
79  void set(classifier::training::ResultId id, daal::algorithms::weak_learner::ModelPtr &value);
80 
81 protected:
83  template<typename Archive, bool onDeserialize>
84  services::Status serialImpl(Archive *arch)
85  {
86  return daal::algorithms::classifier::training::Result::serialImpl<Archive, onDeserialize>(arch);
87  }
88 };
89 typedef services::SharedPtr<Result> ResultPtr;
90 } // namespace interface1
91 using interface1::Result;
92 using interface1::ResultPtr;
93 
94 } // namespace daal::algorithms::weak_learner::training
96 } // namespace daal::algorithms::weak_learner
97 } // namespace daal::algorithms
98 } // namespace daal
99 #endif
daal
Definition: algorithm_base_common.h:31
daal::algorithms::weak_learner::training::interface1::Result
Provides methods to access final results obtained with compute() method of Batch or finalizeCompute()...
Definition: weak_learner_training_types.h:60
daal::algorithms::classifier::training::ResultId
ResultId
Definition: classifier_training_types.h:80
daal::algorithms::math::abs::value
Definition: abs_types.h:86

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