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

adaboost_training_types.h
1 /* file: adaboost_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 Ada Boost training algorithm interface.
19 //--
20 */
21 
22 #ifndef __ADA_BOOST_TRAINING_TYPES_H__
23 #define __ADA_BOOST_TRAINING_TYPES_H__
24 
25 #include "algorithms/algorithm.h"
26 #include "algorithms/classifier/classifier_training_types.h"
27 #include "algorithms/boosting/adaboost_model.h"
28 
29 namespace daal
30 {
31 namespace algorithms
32 {
38 namespace adaboost
39 {
49 namespace training
50 {
55 enum Method
56 {
57  defaultDense = 0
58 };
59 
63 namespace interface1
64 {
70 class DAAL_EXPORT Result : public classifier::training::Result
71 {
72 public:
73  DECLARE_SERIALIZABLE_CAST(Result);
74 
75  virtual ~Result() {}
76 
83  template <typename algorithmFPType>
84  DAAL_EXPORT services::Status allocate(const daal::algorithms::Input *input, const daal::algorithms::Parameter *parameter, const int method);
85 
91  daal::algorithms::adaboost::ModelPtr get(classifier::training::ResultId id) const;
92 
93  services::Status check(const daal::algorithms::Input *input, const daal::algorithms::Parameter *parameter, int method) const DAAL_C11_OVERRIDE;
94 
95 protected:
97  template<typename Archive, bool onDeserialize>
98  services::Status serialImpl(Archive *arch)
99  {
100  return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
101  }
102 };
103 typedef services::SharedPtr<Result> ResultPtr;
104 } // namespace interface1
105 using interface1::Result;
106 using interface1::ResultPtr;
107 
108 } // namespace daal::algorithms::adaboost::training
110 }
111 }
112 } // namespace daal
113 #endif // __ADA_BOOST_TRAINING_TYPES_H__
daal
Definition: algorithm_base_common.h:31
daal::algorithms::adaboost::training::defaultDense
Definition: adaboost_training_types.h:57
daal::algorithms::classifier::training::ResultId
ResultId
Definition: classifier_training_types.h:80
daal::algorithms::adaboost::training::Method
Method
Definition: adaboost_training_types.h:55
daal::algorithms::adaboost::training::interface1::Result
Provides methods to access final results obtained with the compute() method of the AdaBoost training ...
Definition: adaboost_training_types.h:70

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