48 #ifndef __DECISION_TREE_REGRESSION_PREDICT_TYPES_H__ 49 #define __DECISION_TREE_REGRESSION_PREDICT_TYPES_H__ 51 #include "algorithms/algorithm.h" 52 #include "data_management/data/data_serialize.h" 53 #include "algorithms/decision_tree/decision_tree_regression_model.h" 54 #include "algorithms/regression/regression_predict_types.h" 64 namespace decision_tree
98 enum NumericTableInputId
100 data = algorithms::regression::prediction::data,
101 lastNumericTableInputId = data
110 model = algorithms::regression::prediction::model,
111 lastModelInputId = model
120 prediction = algorithms::regression::prediction::prediction,
121 lastResultId = prediction
134 class DAAL_EXPORT Input :
public algorithms::regression::prediction::Input
138 Input(
const Input &other);
145 data_management::NumericTablePtr
get(NumericTableInputId id)
const;
152 ModelPtr
get(ModelInputId id)
const;
159 void set(NumericTableInputId id,
const data_management::NumericTablePtr & ptr);
166 void set(ModelInputId id,
const ModelPtr & value);
173 services::Status check(
const daal::algorithms::Parameter * parameter,
int method)
const DAAL_C11_OVERRIDE;
180 class DAAL_EXPORT Result :
public algorithms::regression::prediction::Result
183 DECLARE_SERIALIZABLE_CAST(Result);
191 data_management::NumericTablePtr
get(ResultId id)
const;
198 void set(ResultId id,
const data_management::NumericTablePtr &value);
206 template <
typename algorithmFPType>
207 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input * input,
const daal::algorithms::Parameter * par,
const int method);
215 services::Status check(
const daal::algorithms::Input * input,
const daal::algorithms::Parameter * par,
int method)
const DAAL_C11_OVERRIDE;
219 template<
typename Archive,
bool onDeserialize>
220 services::Status serialImpl(Archive *arch)
222 return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
226 typedef services::SharedPtr<Result> ResultPtr;
227 typedef services::SharedPtr<const Result> ResultConstPtr;
231 using interface1::Input;
232 using interface1::Result;
233 using interface1::ResultPtr;
234 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:108
daal::algorithms::decision_tree::regression::prediction::model
Definition: decision_tree_regression_predict_types.h:110
daal::algorithms::regression::prediction::interface1::Result
Provides interface for the result of the regression model-based prediction.
Definition: regression_predict_types.h:159
daal::services::interface1::Status
Class that holds the results of API calls. In case of API routine failure it contains the list of err...
Definition: error_handling.h:491
daal
Definition: algorithm_base_common.h:57
daal::algorithms::decision_tree::regression::prediction::defaultDense
Definition: decision_tree_regression_predict_types.h:91
daal::algorithms::neural_networks::prediction::prediction
Definition: neural_networks_prediction_result.h:79
daal::algorithms::decision_tree::regression::prediction::prediction
Definition: decision_tree_regression_predict_types.h:120
daal::algorithms::interface1::Parameter
Base class to represent computation parameters. Algorithm-specific parameters are represented as deri...
Definition: algorithm_types.h:86
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:118
daal::algorithms::decision_tree::regression::prediction::data
Definition: decision_tree_regression_predict_types.h:100
daal::services::interface1::SharedPtr
Shared pointer that retains shared ownership of an object through a pointer. Several SharedPtr object...
Definition: daal_shared_ptr.h:187
daal::algorithms::regression::prediction::prediction
Definition: regression_predict_types.h:98
daal::algorithms::decision_tree::regression::prediction::Method
Method
Available methods for making Decision tree model-based prediction.
Definition: decision_tree_regression_predict_types.h:89
daal::algorithms::regression::prediction::model
Definition: regression_predict_types.h:88
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:98
daal::algorithms::regression::prediction::data
Definition: regression_predict_types.h:78
daal::algorithms::math::abs::value
Definition: abs_types.h:112
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:180