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

decision_tree_classification_predict_types.h
1 /* file: decision_tree_classification_predict_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 Decision tree classification algorithm interface
21 //--
22 */
23 
24 #ifndef __DECISION_TREE_CLASSIFICATION_PREDICT_TYPES_H__
25 #define __DECISION_TREE_CLASSIFICATION_PREDICT_TYPES_H__
26 
27 #include "algorithms/algorithm.h"
28 #include "data_management/data/data_serialize.h"
29 #include "algorithms/decision_tree/decision_tree_classification_model.h"
30 #include "algorithms/classifier/classifier_predict_types.h"
31 
32 namespace daal
33 {
34 namespace algorithms
35 {
36 
40 namespace decision_tree
41 {
42 
46 namespace classification
47 {
48 
58 namespace prediction
59 {
60 
65 enum Method
66 {
67  defaultDense = 0
68 };
69 
73 namespace interface1
74 {
75 
80 class DAAL_EXPORT Input : public classifier::prediction::Input
81 {
82  typedef classifier::prediction::Input super;
83 public:
85  Input();
86  Input(const Input& other) : super(other){}
87 
88  using super::get;
89  using super::set;
90 
96  ModelPtr get(classifier::prediction::ModelInputId id) const;
97 
103  void set(classifier::prediction::NumericTableInputId id, const data_management::NumericTablePtr & ptr);
104 
110  void set(classifier::prediction::ModelInputId id, const ModelPtr & value);
111 
117  services::Status check(const daal::algorithms::Parameter * parameter, int method) const DAAL_C11_OVERRIDE;
118 };
119 
120 typedef services::SharedPtr<Input> InputPtr;
121 typedef services::SharedPtr<const Input> InputConstPtr;
122 
123 } // namespace interface1
124 
125 using interface1::Input;
126 using interface1::InputPtr;
127 using interface1::InputConstPtr;
128 
129 } // namespace prediction
131 } // namespace classification
132 } // namespace decision_tree
133 } // namespace algorithms
134 } // namespace daal
135 
136 #endif
daal::algorithms::decision_tree::classification::prediction::Method
Method
Available methods for making Decision tree model-based prediction.
Definition: decision_tree_classification_predict_types.h:65
daal::algorithms::decision_tree::classification::prediction::defaultDense
Definition: decision_tree_classification_predict_types.h:67
daal::algorithms::neural_networks::prediction::prediction
Definition: neural_networks_prediction_result.h:55
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:80
daal::algorithms::classifier::prediction::NumericTableInputId
NumericTableInputId
Definition: classifier_predict_types.h:55
daal::algorithms::classifier::prediction::ModelInputId
ModelInputId
Definition: classifier_predict_types.h:66
daal::algorithms::math::abs::value
Definition: abs_types.h:88

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