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

stump_training_types.h
1 /* file: stump_training_types.h */
2 /*******************************************************************************
3 * Copyright 2014-2019 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 interface of the decision stump training algorithm.
19 //--
20 */
21 
22 #ifndef __STUMP_TRAINING_TYPES_H__
23 #define __STUMP_TRAINING_TYPES_H__
24 
25 #include "algorithms/algorithm.h"
26 #include "algorithms/classifier/classifier_training_types.h"
27 #include "algorithms/weak_learner/weak_learner_training_types.h"
28 #include "algorithms/stump/stump_model.h"
29 
30 namespace daal
31 {
32 namespace algorithms
33 {
37 namespace stump
38 {
48 namespace training
49 {
54 enum Method
55 {
56  defaultDense = 0
57 };
58 
62 namespace interface1
63 {
69 class DAAL_EXPORT Result : public daal::algorithms::weak_learner::training::Result
70 {
71 public:
72  DECLARE_SERIALIZABLE_CAST(Result);
73  Result();
74 
75  virtual ~Result() {}
76 
82  daal::algorithms::stump::ModelPtr get(classifier::training::ResultId id) const;
83 
89  void set(classifier::training::ResultId id, daal::algorithms::stump::ModelPtr &value);
90 
98  template <typename algorithmFPType>
99  DAAL_EXPORT services::Status allocate(const daal::algorithms::Input *input, const daal::algorithms::Parameter *parameter, const int method);
100 
107  services::Status check(const daal::algorithms::Input *input, const daal::algorithms::Parameter *parameter, int method) const DAAL_C11_OVERRIDE;
108 
109 protected:
111  template<typename Archive, bool onDeserialize>
112  services::Status serialImpl(Archive *arch)
113  {
114  return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
115  }
116 };
117 typedef services::SharedPtr<Result> ResultPtr;
118 } // namespace interface1
119 using interface1::Result;
120 using interface1::ResultPtr;
121 
122 } // namespace daal::algorithms::stump::training
124 }
125 }
126 } // namespace daal
127 #endif // __STUMP_TRAINING_TYPES_H__
daal
Definition: algorithm_base_common.h:31
daal::algorithms::stump::training::Method
Method
Definition: stump_training_types.h:54
daal::algorithms::stump::training::defaultDense
Definition: stump_training_types.h:56
daal::algorithms::classifier::training::ResultId
ResultId
Definition: classifier_training_types.h:80
daal::algorithms::math::abs::value
Definition: abs_types.h:86
daal::algorithms::stump::training::interface1::Result
Provides methods to access final results obtained with the compute() method of the decision stump tra...
Definition: stump_training_types.h:69

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