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

logitboost_training_types.h
1 /* file: logitboost_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 LogitBoost training algorithm interface.
21 //--
22 */
23 
24 #ifndef __LOGIT_BOOST_TRAINING_TYPES_H__
25 #define __LOGIT_BOOST_TRAINING_TYPES_H__
26 
27 #include "algorithms/algorithm.h"
28 #include "algorithms/classifier/classifier_training_types.h"
29 #include "algorithms/boosting/logitboost_model.h"
30 
31 namespace daal
32 {
33 namespace algorithms
34 {
40 namespace logitboost
41 {
51 namespace training
52 {
57 enum Method
58 {
59  friedman = 0,
60  defaultDense = 0
61 };
62 
66 namespace interface1
67 {
73 class DAAL_EXPORT Result : public classifier::training::interface1::Result
74 {
75 public:
76  DECLARE_SERIALIZABLE_CAST(Result);
77 
78  DAAL_DEPRECATED_VIRTUAL virtual ~Result() {}
79 
85  DAAL_DEPRECATED daal::algorithms::logitboost::interface1::ModelPtr get(classifier::training::ResultId id) const;
86 
93  template <typename algorithmFPType>
94  DAAL_EXPORT DAAL_DEPRECATED services::Status allocate(const daal::algorithms::Input *input, const daal::algorithms::Parameter *parameter, const int method);
95 
96 protected:
98  template<typename Archive, bool onDeserialize>
99  services::Status serialImpl(Archive *arch)
100  {
101  return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
102  }
103 };
104 typedef services::SharedPtr<Result> ResultPtr;
105 } // namespace interface1
106 
110 namespace interface2
111 {
117 class DAAL_EXPORT Result : public classifier::training::Result
118 {
119 public:
120  DECLARE_SERIALIZABLE_CAST(Result);
121 
122  virtual ~Result() {}
123 
129  daal::algorithms::logitboost::ModelPtr get(classifier::training::ResultId id) const;
130 
137  template <typename algorithmFPType>
138  DAAL_EXPORT services::Status allocate(const daal::algorithms::Input *input, const daal::algorithms::Parameter *parameter, const int method);
139 
140 protected:
142  template<typename Archive, bool onDeserialize>
143  services::Status serialImpl(Archive *arch)
144  {
145  return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
146  }
147 };
148 typedef services::SharedPtr<Result> ResultPtr;
149 } // namespace interface2
150 using interface2::Result;
151 using interface2::ResultPtr;
152 
153 } // namespace daal::algorithms::logitboost::training
155 }
156 }
157 } // namespace daal
158 #endif // __LOGIT_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::logitboost::training::friedman
Definition: logitboost_training_types.h:59
daal::algorithms::logitboost::training::interface2::Result
Provides methods to access final results obtained with the compute() method of the LogitBoost trainin...
Definition: logitboost_training_types.h:117
daal::algorithms::logitboost::training::defaultDense
Definition: logitboost_training_types.h:60
daal::algorithms::logitboost::training::interface1::Result
Provides methods to access final results obtained with the compute() method of the LogitBoost trainin...
Definition: logitboost_training_types.h:73
daal::algorithms::logitboost::training::Method
Method
Definition: logitboost_training_types.h:57
daal::algorithms::classifier::training::ResultId
ResultId
Definition: classifier_training_types.h:82

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