C++ API Reference for Intel® Data Analytics Acceleration Library 2019 Update 4

decision_tree_classification_predict_types.h
1 /* file: decision_tree_classification_predict_types.h */
2 /*******************************************************************************
3 * Copyright 2014-2019 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 classification algorithm interface
19 //--
20 */
21 
22 #ifndef __DECISION_TREE_CLASSIFICATION_PREDICT_TYPES_H__
23 #define __DECISION_TREE_CLASSIFICATION_PREDICT_TYPES_H__
24 
25 #include "algorithms/algorithm.h"
26 #include "data_management/data/data_serialize.h"
27 #include "algorithms/decision_tree/decision_tree_classification_model.h"
28 #include "algorithms/classifier/classifier_predict_types.h"
29 
30 namespace daal
31 {
32 namespace algorithms
33 {
34 
38 namespace decision_tree
39 {
40 
44 namespace classification
45 {
46 
56 namespace prediction
57 {
58 
63 enum Method
64 {
65  defaultDense = 0
66 };
67 
71 namespace interface1
72 {
73 
78 class DAAL_EXPORT Input : public classifier::prediction::Input
79 {
80  typedef classifier::prediction::Input super;
81 public:
83  Input();
84  Input(const Input& other) : super(other){}
85 
86  using super::get;
87  using super::set;
88 
94  ModelPtr get(classifier::prediction::ModelInputId id) const;
95 
101  void set(classifier::prediction::NumericTableInputId id, const data_management::NumericTablePtr & ptr);
102 
108  void set(classifier::prediction::ModelInputId id, const ModelPtr & value);
109 
115  services::Status check(const daal::algorithms::Parameter * parameter, int method) const DAAL_C11_OVERRIDE;
116 };
117 
118 typedef services::SharedPtr<Input> InputPtr;
119 typedef services::SharedPtr<const Input> InputConstPtr;
120 
121 } // namespace interface1
122 
123 using interface1::Input;
124 using interface1::InputPtr;
125 using interface1::InputConstPtr;
126 
127 } // namespace prediction
129 } // namespace classification
130 } // namespace decision_tree
131 } // namespace algorithms
132 } // namespace daal
133 
134 #endif
daal
Definition: algorithm_base_common.h:31
daal::algorithms::classifier::prediction::ModelInputId
ModelInputId
Definition: classifier_predict_types.h:64
daal::algorithms::decision_tree::classification::prediction::defaultDense
Definition: decision_tree_classification_predict_types.h:65
daal::algorithms::classifier::prediction::NumericTableInputId
NumericTableInputId
Definition: classifier_predict_types.h:53
daal::algorithms::decision_tree::classification::prediction::interface1::Input
Provides an interface for input objects for making Decision tree model-based prediction.
Definition: decision_tree_classification_predict_types.h:78
daal::algorithms::classifier::prediction::prediction
Definition: classifier_predict_types.h:76
daal::algorithms::math::abs::value
Definition: abs_types.h:86
daal::algorithms::decision_tree::classification::prediction::Method
Method
Available methods for making Decision tree model-based prediction.
Definition: decision_tree_classification_predict_types.h:63

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