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

stump_regression_training_types.h
1 /* file: stump_regression_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 interface of the decision stump training algorithm.
21 //--
22 */
23 
24 #ifndef __STUMP_REGRESSION_TRAINING_TYPES_H__
25 #define __STUMP_REGRESSION_TRAINING_TYPES_H__
26 
27 #include "algorithms/algorithm.h"
28 #include "algorithms/regression/regression_training_types.h"
29 #include "algorithms/regression/regression_training_types.h"
30 #include "algorithms/stump/stump_regression_model.h"
31 
32 namespace daal
33 {
34 namespace algorithms
35 {
39 namespace stump
40 {
41 namespace regression
42 {
52 namespace training
53 {
58 enum Method
59 {
60  defaultDense = 0
61 };
62 
67 enum ResultNumericTableId
68 {
69  variableImportance = daal::algorithms::regression::training::lastResultId + 1,
71  lastResultId = variableImportance
72 };
73 
74 
78 namespace interface1
79 {
85 class DAAL_EXPORT Result : public daal::algorithms::regression::training::Result
86 {
87 public:
88  DECLARE_SERIALIZABLE_CAST(Result);
89  Result();
90 
91  virtual ~Result() {}
92 
98  daal::algorithms::stump::regression::ModelPtr get(daal::algorithms::regression::training::ResultId id) const;
99 
105  void set(daal::algorithms::regression::training::ResultId id, daal::algorithms::stump::regression::ModelPtr &value);
106 
112  data_management::NumericTablePtr get(ResultNumericTableId id) const;
113 
119  void set(ResultNumericTableId id, const data_management::NumericTablePtr &value);
120 
128  template <typename algorithmFPType>
129  DAAL_EXPORT services::Status allocate(const daal::algorithms::Input *input, const daal::algorithms::Parameter *parameter, const int method);
130 
131 protected:
133  template<typename Archive, bool onDeserialize>
134  services::Status serialImpl(Archive *arch)
135  {
136  return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
137  }
138 };
139 typedef services::SharedPtr<Result> ResultPtr;
140 } // namespace interface1
141 using interface1::Result;
142 using interface1::ResultPtr;
143 
144 } // namespace daal::algorithms::stump::regression::training
146 }
147 }
148 }
149 } // namespace daal
150 #endif // __stump__regression_TRAINING_TYPES_H__
daal::algorithms::stump::regression::training::ResultNumericTableId
ResultNumericTableId
Available identifiers of the result of training.
Definition: stump_regression_training_types.h:67
daal::algorithms::stump::regression::training::Method
Method
Definition: stump_regression_training_types.h:58
daal::algorithms::regression::training::ResultId
ResultId
Available identifiers of the result of regression model-based training.
Definition: regression_training_types.h:64
daal::algorithms::stump::regression::training::defaultDense
Definition: stump_regression_training_types.h:60
daal::algorithms::stump::regression::training::interface1::Result
Provides methods to access final results obtained with the compute() method of the decision stump tra...
Definition: stump_regression_training_types.h:85
daal::algorithms::math::abs::value
Definition: abs_types.h:88
daal::algorithms::stump::regression::training::variableImportance
Definition: stump_regression_training_types.h:69

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