C++ API Reference for Intel® Data Analytics Acceleration Library 2018 Update 3

decision_tree_regression_training_types.h
1 /* file: decision_tree_regression_training_types.h */
2 /*******************************************************************************
3 * Copyright 2014-2018 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 the Decision tree algorithm interface
19 //--
20 */
21 
22 #ifndef __DECISION_TREE_REGRESSION_TRAINING_TYPES_H__
23 #define __DECISION_TREE_REGRESSION_TRAINING_TYPES_H__
24 
25 #include "algorithms/algorithm.h"
26 #include "data_management/data/data_serialize.h"
27 #include "algorithms/decision_tree/decision_tree_regression_model.h"
28 #include "algorithms/regression/regression_training_types.h"
29 
30 namespace daal
31 {
32 namespace algorithms
33 {
34 
38 namespace decision_tree
39 {
40 
44 namespace regression
45 {
46 
56 namespace training
57 {
58 
63 enum Method
64 {
65  defaultDense = 0
66 };
67 
72 enum InputId
73 {
74  data = algorithms::regression::training::data,
75  dependentVariables = algorithms::regression::training::dependentVariables,
76  dataForPruning ,
77  dependentVariablesForPruning ,
78  lastInputId = dependentVariablesForPruning
79 };
80 
85 enum ResultId
86 {
87  model = algorithms::regression::training::model,
88  lastResultId = model
89 };
90 
94 namespace interface1
95 {
96 
101 class DAAL_EXPORT Input : public algorithms::regression::training::Input
102 {
103 public:
104  Input();
105  Input(const Input &other);
106 
112  data_management::NumericTablePtr get(decision_tree::regression::training::InputId id) const;
113 
119  void set(decision_tree::regression::training::InputId id, const data_management::NumericTablePtr & value);
120 
125  size_t getNumberOfFeatures() const;
126 
131  size_t getNumberOfDependentVariables() const;
132 
138  services::Status check(const daal::algorithms::Parameter * parameter, int method) const DAAL_C11_OVERRIDE;
139 
140 protected:
141  services::Status checkImpl(const daal::algorithms::Parameter * parameter) const;
142 };
143 
148 class DAAL_EXPORT Result : public algorithms::regression::training::Result
149 {
150 public:
151  DECLARE_SERIALIZABLE_CAST(Result);
152  Result();
153 
159  ModelPtr get(ResultId id) const;
160 
167  template<typename algorithmFPType>
168  DAAL_EXPORT services::Status allocate(const daal::algorithms::Input * input, const Parameter * parameter, int method);
169 
170 protected:
172  template<typename Archive, bool onDeserialize>
173  services::Status serialImpl(Archive * arch)
174  {
175  return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
176  }
177 };
178 
179 typedef services::SharedPtr<Result> ResultPtr;
180 typedef services::SharedPtr<const Result> ResultConstPtr;
181 
182 } // namespace interface1
183 
184 using interface1::Input;
185 using interface1::Result;
186 using interface1::ResultPtr;
187 using interface1::ResultConstPtr;
188 
189 } // namespace training
191 } // namespace regression
192 } // namespace decision_tree
193 } // namespace algorithms
194 } // namespace daal
195 
196 #endif
daal::algorithms::decision_tree::regression::training::dataForPruning
Definition: decision_tree_regression_training_types.h:76
daal::algorithms::decision_tree::regression::training::dependentVariables
Definition: decision_tree_regression_training_types.h:75
daal::algorithms::decision_tree::regression::training::InputId
InputId
Available identifiers of the results in the training stage of Decision tree.
Definition: decision_tree_regression_training_types.h:72
daal::algorithms::decision_tree::regression::training::Method
Method
Computation methods for Decision tree model-based training.
Definition: decision_tree_regression_training_types.h:63
daal
Definition: algorithm_base_common.h:31
daal::algorithms::decision_tree::regression::training::data
Definition: decision_tree_regression_training_types.h:74
daal::algorithms::decision_tree::regression::training::interface1::Result
Provides methods to access the result obtained with the compute() method of Decision tree model-based...
Definition: decision_tree_regression_training_types.h:148
daal::algorithms::decision_tree::regression::training::defaultDense
Definition: decision_tree_regression_training_types.h:65
daal::algorithms::decision_tree::regression::training::interface1::Input
Base class for the input objects in the training stage of the regression algorithms.
Definition: decision_tree_regression_training_types.h:101
daal::algorithms::regression::training::model
Definition: regression_training_types.h:63
daal::algorithms::decision_tree::regression::training::ResultId
ResultId
Available identifiers of the result of decision tree model-based training.
Definition: decision_tree_regression_training_types.h:85
daal::algorithms::decision_tree::regression::training::dependentVariablesForPruning
Definition: decision_tree_regression_training_types.h:77
daal::algorithms::regression::training::dependentVariables
Definition: regression_training_types.h:53
daal::algorithms::regression::training::data
Definition: regression_training_types.h:52
daal::algorithms::math::abs::value
Definition: abs_types.h:86
daal::algorithms::decision_tree::regression::training::model
Definition: decision_tree_regression_training_types.h:87

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