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

stump_classification_training_types.h
1 /* file: stump_classification_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_CLASSIFICATION_TRAINING_TYPES_H__
25 #define __STUMP_CLASSIFICATION_TRAINING_TYPES_H__
26 
27 #include "algorithms/algorithm.h"
28 #include "algorithms/classifier/classifier_training_types.h"
29 #include "algorithms/classifier/classifier_training_types.h"
30 #include "algorithms/stump/stump_classification_model.h"
31 
32 namespace daal
33 {
34 namespace algorithms
35 {
39 namespace stump
40 {
41 namespace classification
42 {
52 namespace training
53 {
58 enum Method
59 {
60  defaultDense = 0
61 };
62 
67 enum ResultNumericTableId
68 {
69  variableImportance = classifier::training::lastResultId + 1,
71  lastResultId = variableImportance
72 };
73 
74 
78 namespace interface1
79 {
85 class DAAL_EXPORT Result : public daal::algorithms::classifier::training::Result
86 {
87 public:
88  DECLARE_SERIALIZABLE_CAST(Result);
89  Result();
90 
91  virtual ~Result() {}
92 
98  daal::algorithms::stump::classification::ModelPtr get(classifier::training::ResultId id) const;
99 
105  void set(classifier::training::ResultId id, daal::algorithms::stump::classification::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 
137  services::Status check(const daal::algorithms::Input *input, const daal::algorithms::Parameter *parameter, int method) const DAAL_C11_OVERRIDE;
138 
139 protected:
141  template<typename Archive, bool onDeserialize>
142  services::Status serialImpl(Archive *arch)
143  {
144  return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
145  }
146 };
147 typedef services::SharedPtr<Result> ResultPtr;
148 } // namespace interface1
149 using interface1::Result;
150 using interface1::ResultPtr;
151 
152 } // namespace daal::algorithms::stump::classification::training
154 }
155 }
156 }
157 } // namespace daal
158 #endif // __stump__classification_TRAINING_TYPES_H__
daal::algorithms::stump::classification::training::ResultNumericTableId
ResultNumericTableId
Available identifiers of the result of training.
Definition: stump_classification_training_types.h:67
daal::algorithms::stump::classification::training::defaultDense
Definition: stump_classification_training_types.h:60
daal::algorithms::stump::classification::training::Method
Method
Definition: stump_classification_training_types.h:58
daal::algorithms::stump::classification::training::interface1::Result
Provides methods to access final results obtained with the compute() method of the decision stump tra...
Definition: stump_classification_training_types.h:85
daal::algorithms::stump::classification::training::variableImportance
Definition: stump_classification_training_types.h:69
daal::algorithms::math::abs::value
Definition: abs_types.h:88
daal::algorithms::classifier::training::ResultId
ResultId
Definition: classifier_training_types.h:82

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