22 #ifndef __DECISION_TREE_REGRESSION_PREDICT_TYPES_H__
23 #define __DECISION_TREE_REGRESSION_PREDICT_TYPES_H__
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_predict_types.h"
38 namespace decision_tree
72 enum NumericTableInputId
74 data = algorithms::regression::prediction::data,
75 lastNumericTableInputId = data
84 model = algorithms::regression::prediction::model,
85 lastModelInputId = model
94 prediction = algorithms::regression::prediction::prediction,
95 lastResultId = prediction
108 class DAAL_EXPORT Input :
public algorithms::regression::prediction::Input
112 Input(
const Input &other);
119 data_management::NumericTablePtr
get(NumericTableInputId id)
const;
126 ModelPtr
get(ModelInputId id)
const;
133 void set(NumericTableInputId
id,
const data_management::NumericTablePtr & ptr);
140 void set(ModelInputId
id,
const ModelPtr & value);
147 services::Status check(
const daal::algorithms::Parameter * parameter,
int method)
const DAAL_C11_OVERRIDE;
154 class DAAL_EXPORT Result :
public algorithms::regression::prediction::Result
157 DECLARE_SERIALIZABLE_CAST(Result);
165 data_management::NumericTablePtr
get(ResultId id)
const;
172 void set(ResultId
id,
const data_management::NumericTablePtr &value);
180 template <
typename algorithmFPType>
181 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input * input,
const daal::algorithms::Parameter * par,
const int method);
189 services::Status check(
const daal::algorithms::Input * input,
const daal::algorithms::Parameter * par,
int method)
const DAAL_C11_OVERRIDE;
193 template<
typename Archive,
bool onDeserialize>
194 services::Status serialImpl(Archive *arch)
196 return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
200 typedef services::SharedPtr<Result> ResultPtr;
201 typedef services::SharedPtr<const Result> ResultConstPtr;
205 using interface1::Input;
206 using interface1::Result;
207 using interface1::ResultPtr;
208 using interface1::ResultConstPtr;
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:82
daal::algorithms::decision_tree::regression::prediction::prediction
Definition: decision_tree_regression_predict_types.h:94
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:72
daal
Definition: algorithm_base_common.h:31
daal::algorithms::decision_tree::regression::prediction::data
Definition: decision_tree_regression_predict_types.h:74
daal::algorithms::decision_tree::regression::prediction::defaultDense
Definition: decision_tree_regression_predict_types.h:65
daal::algorithms::decision_tree::regression::prediction::model
Definition: decision_tree_regression_predict_types.h:84
daal::algorithms::regression::prediction::prediction
Definition: regression_predict_types.h:72
daal::algorithms::regression::prediction::data
Definition: regression_predict_types.h:52
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:92
daal::algorithms::decision_tree::regression::prediction::Method
Method
Available methods for making Decision tree model-based prediction.
Definition: decision_tree_regression_predict_types.h:63
daal::algorithms::math::abs::value
Definition: abs_types.h:86
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:154
daal::algorithms::regression::prediction::model
Definition: regression_predict_types.h:62