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

weak_learner_training_types.h
1 /* file: weak_learner_training_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 on the training stage
21 // of weak learners algorithms
22 //--
23 */
24 
25 #ifndef __WEAK_LEARNER_TRAINING_TYPES_H__
26 #define __WEAK_LEARNER_TRAINING_TYPES_H__
27 
28 #include "algorithms/algorithm.h"
29 #include "algorithms/weak_learner/weak_learner_model.h"
30 
31 namespace daal
32 {
33 namespace algorithms
34 {
38 namespace weak_learner
39 {
49 namespace training
50 {
51 
55 namespace interface1
56 {
62 class DAAL_EXPORT Result : public daal::algorithms::classifier::training::interface1::Result
63 {
64 public:
65  DECLARE_SERIALIZABLE_CAST(Result);
66  Result();
67  virtual ~Result() {}
68 
74  daal::algorithms::weak_learner::ModelPtr get(classifier::training::ResultId id) const;
75 
81  void set(classifier::training::ResultId id, daal::algorithms::weak_learner::ModelPtr &value);
82 
83 protected:
85  template<typename Archive, bool onDeserialize>
86  services::Status serialImpl(Archive *arch)
87  {
88  return daal::algorithms::classifier::training::Result::serialImpl<Archive, onDeserialize>(arch);
89  }
90 };
91 typedef services::SharedPtr<Result> ResultPtr;
92 } // namespace interface1
93 using interface1::Result;
94 using interface1::ResultPtr;
95 
96 } // namespace daal::algorithms::weak_learner::training
98 } // namespace daal::algorithms::weak_learner
99 } // namespace daal::algorithms
100 } // namespace daal
101 #endif
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::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:62
daal::algorithms::math::abs::value
Definition: abs_types.h:88
daal::algorithms::classifier::training::ResultId
ResultId
Definition: classifier_training_types.h:82

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