24 #ifndef __DECISION_TREE_REGRESSION_PREDICT_TYPES_H__
25 #define __DECISION_TREE_REGRESSION_PREDICT_TYPES_H__
27 #include "algorithms/algorithm.h"
28 #include "data_management/data/data_serialize.h"
29 #include "algorithms/decision_tree/decision_tree_regression_model.h"
30 #include "algorithms/regression/regression_predict_types.h"
40 namespace decision_tree
74 enum NumericTableInputId
76 data = algorithms::regression::prediction::data,
77 lastNumericTableInputId = data
86 model = algorithms::regression::prediction::model,
87 lastModelInputId = model
96 prediction = algorithms::regression::prediction::prediction,
97 lastResultId = prediction
110 class DAAL_EXPORT Input :
public algorithms::regression::prediction::Input
114 Input(
const Input &other);
121 data_management::NumericTablePtr
get(NumericTableInputId id)
const;
128 ModelPtr
get(ModelInputId id)
const;
135 void set(NumericTableInputId
id,
const data_management::NumericTablePtr & ptr);
142 void set(ModelInputId
id,
const ModelPtr & value);
149 services::Status check(
const daal::algorithms::Parameter * parameter,
int method)
const DAAL_C11_OVERRIDE;
156 class DAAL_EXPORT Result :
public algorithms::regression::prediction::Result
159 DECLARE_SERIALIZABLE_CAST(Result);
167 data_management::NumericTablePtr
get(ResultId id)
const;
174 void set(ResultId
id,
const data_management::NumericTablePtr &value);
182 template <
typename algorithmFPType>
183 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input * input,
const daal::algorithms::Parameter * par,
const int method);
191 services::Status check(
const daal::algorithms::Input * input,
const daal::algorithms::Parameter * par,
int method)
const DAAL_C11_OVERRIDE;
195 template<
typename Archive,
bool onDeserialize>
196 services::Status serialImpl(Archive *arch)
198 return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
202 typedef services::SharedPtr<Result> ResultPtr;
203 typedef services::SharedPtr<const Result> ResultConstPtr;
207 using interface1::Input;
208 using interface1::Result;
209 using interface1::ResultPtr;
210 using interface1::ResultConstPtr;
daal::algorithms::decision_tree::regression::prediction::interface1::Result
Provides interface for the result of decision tree model-based prediction.
Definition: decision_tree_regression_predict_types.h:156
daal::algorithms::decision_tree::regression::prediction::NumericTableInputId
NumericTableInputId
Available identifiers of input numeric tables for making decision tree model-based prediction...
Definition: decision_tree_regression_predict_types.h:74
daal::algorithms::neural_networks::prediction::prediction
Definition: neural_networks_prediction_result.h:55
daal::algorithms::decision_tree::regression::prediction::model
Definition: decision_tree_regression_predict_types.h:86
daal::algorithms::decision_tree::regression::prediction::Method
Method
Available methods for making Decision tree model-based prediction.
Definition: decision_tree_regression_predict_types.h:65
daal::algorithms::regression::prediction::data
Definition: regression_predict_types.h:54
daal::algorithms::regression::prediction::prediction
Definition: regression_predict_types.h:74
daal::algorithms::decision_tree::regression::prediction::interface1::Input
Provides an interface for input objects for making Decision tree model-based prediction.
Definition: decision_tree_regression_predict_types.h:110
daal::algorithms::decision_tree::regression::prediction::data
Definition: decision_tree_regression_predict_types.h:76
daal::algorithms::decision_tree::regression::prediction::ResultId
ResultId
Available identifiers of the result for making decision tree model-based prediction.
Definition: decision_tree_regression_predict_types.h:94
daal::algorithms::math::abs::value
Definition: abs_types.h:88
daal::algorithms::decision_tree::regression::prediction::ModelInputId
ModelInputId
Available identifiers of input models for making decision tree model-based prediction.
Definition: decision_tree_regression_predict_types.h:84
daal::algorithms::decision_tree::regression::prediction::prediction
Definition: decision_tree_regression_predict_types.h:96
daal::algorithms::decision_tree::regression::prediction::defaultDense
Definition: decision_tree_regression_predict_types.h:67
daal::algorithms::regression::prediction::model
Definition: regression_predict_types.h:64