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

brownboost_training_types.h
1 /* file: brownboost_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 Brown Boost training algorithm interface.
21 //--
22 */
23 
24 #ifndef __BROWN_BOOST_TRAINING_TYPES_H__
25 #define __BROWN_BOOST_TRAINING_TYPES_H__
26 
27 #include "algorithms/algorithm.h"
28 #include "algorithms/classifier/classifier_training_types.h"
29 #include "algorithms/boosting/brownboost_model.h"
30 
31 namespace daal
32 {
33 namespace algorithms
34 {
40 namespace brownboost
41 {
51 namespace training
52 {
57 enum Method
58 {
59  defaultDense = 0
60 };
61 
65 namespace interface1
66 {
72 class DAAL_EXPORT Result : public classifier::training::interface1::Result
73 {
74 public:
75  DECLARE_SERIALIZABLE_CAST(Result);
76 
77  DAAL_DEPRECATED_VIRTUAL virtual ~Result() {}
78 
84  DAAL_DEPRECATED daal::algorithms::brownboost::interface1::ModelPtr get(classifier::training::ResultId id) const;
85 
92  template <typename algorithmFPType>
93  DAAL_EXPORT DAAL_DEPRECATED services::Status allocate(const daal::algorithms::Input *input, const daal::algorithms::Parameter *parameter, const int method);
94 
95  DAAL_DEPRECATED services::Status check(const daal::algorithms::Input *input, const daal::algorithms::Parameter *parameter, int method) const DAAL_C11_OVERRIDE;
96 
97 protected:
99  template<typename Archive, bool onDeserialize>
100  services::Status serialImpl(Archive *arch)
101  {
102  return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
103  }
104 };
105 typedef services::SharedPtr<interface1::Result> ResultPtr;
106 } // namespace interface1
107 
111 namespace interface2
112 {
118 class DAAL_EXPORT Result : public classifier::training::Result
119 {
120 public:
121  DECLARE_SERIALIZABLE_CAST(Result);
122 
123  virtual ~Result() {}
124 
130  daal::algorithms::brownboost::ModelPtr get(classifier::training::ResultId id) const;
131 
138  template <typename algorithmFPType>
139  DAAL_EXPORT services::Status allocate(const daal::algorithms::Input *input, const daal::algorithms::Parameter *parameter, const int method);
140 
141  services::Status check(const daal::algorithms::Input *input, const daal::algorithms::Parameter *parameter, int method) const DAAL_C11_OVERRIDE;
142 
143 protected:
145  template<typename Archive, bool onDeserialize>
146  services::Status serialImpl(Archive *arch)
147  {
148  return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
149  }
150 };
151 typedef services::SharedPtr<Result> ResultPtr;
152 } // namespace interface2
153 using interface2::Result;
154 using interface2::ResultPtr;
155 
156 } // namespace daal::algorithms::brownboost::training
158 }
159 }
160 } // namespace daal
161 #endif // __BROWN_BOOST_TRAINING_TYPES_H__
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::brownboost::training::interface2::Result
Provides methods to access final results obtained with the compute() method of the BrownBoost trainin...
Definition: brownboost_training_types.h:118
daal::algorithms::brownboost::training::defaultDense
Definition: brownboost_training_types.h:59
daal::algorithms::brownboost::training::Method
Method
Definition: brownboost_training_types.h:57
daal::algorithms::classifier::training::ResultId
ResultId
Definition: classifier_training_types.h:82
daal::algorithms::brownboost::training::interface1::Result
Provides methods to access final results obtained with the compute() method.
Definition: brownboost_training_types.h:72

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