22 #ifndef __DECISION_FOREST_REGRESSSION_PREDICT_TYPES_H__
23 #define __DECISION_FOREST_REGRESSSION_PREDICT_TYPES_H__
25 #include "algorithms/algorithm.h"
26 #include "data_management/data/numeric_table.h"
27 #include "data_management/data/data_serialize.h"
28 #include "services/daal_defines.h"
29 #include "algorithms/decision_forest/decision_forest_regression_model.h"
30 #include "algorithms/regression/regression_predict_types.h"
39 namespace decision_forest
67 enum NumericTableInputId
69 data = algorithms::regression::prediction::data,
70 lastNumericTableInputId = data
79 model = algorithms::regression::prediction::model,
80 lastModelInputId = model
89 prediction = algorithms::regression::prediction::prediction,
90 lastResultId = prediction
103 class DAAL_EXPORT Input :
public algorithms::regression::prediction::Input
107 Input(
const Input& other);
114 data_management::NumericTablePtr
get(NumericTableInputId id)
const;
121 decision_forest::regression::ModelPtr
get(ModelInputId id)
const;
128 void set(NumericTableInputId
id,
const data_management::NumericTablePtr &value);
135 void set(ModelInputId
id,
const decision_forest::regression::ModelPtr &value);
141 services::Status check(
const daal::algorithms::Parameter *parameter,
int method)
const DAAL_C11_OVERRIDE;
148 class DAAL_EXPORT Result :
public algorithms::regression::prediction::Result
151 DECLARE_SERIALIZABLE_CAST(Result)
159 data_management::NumericTablePtr
get(ResultId id)
const;
166 void set(ResultId
id,
const data_management::NumericTablePtr &value);
175 template <
typename algorithmFPType>
176 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
const int method);
185 services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
189 template<
typename Archive,
bool onDeserialize>
190 services::Status serialImpl(Archive *arch)
192 return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
195 typedef services::SharedPtr<Result> ResultPtr;
196 typedef services::SharedPtr<const Result> ResultConstPtr;
199 using interface1::Input;
200 using interface1::Result;
201 using interface1::ResultPtr;
202 using interface1::ResultConstPtr;
daal::algorithms::decision_forest::regression::prediction::ModelInputId
ModelInputId
Available identifiers of input models for making decision forest model-based prediction.
Definition: decision_forest_regression_predict_types.h:77
daal
Definition: algorithm_base_common.h:31
daal::algorithms::decision_forest::regression::prediction::data
Definition: decision_forest_regression_predict_types.h:69
daal::algorithms::decision_forest::regression::prediction::prediction
Definition: decision_forest_regression_predict_types.h:89
daal::algorithms::decision_forest::regression::prediction::interface1::Result
Provides interface for the result of decision forest model-based prediction.
Definition: decision_forest_regression_predict_types.h:148
daal::algorithms::decision_forest::regression::prediction::ResultId
ResultId
Available identifiers of the result for making decision forest model-based prediction.
Definition: decision_forest_regression_predict_types.h:87
daal::algorithms::decision_forest::regression::prediction::Method
Method
Available methods for making decision forest model-based prediction.
Definition: decision_forest_regression_predict_types.h:58
daal::algorithms::decision_forest::regression::prediction::NumericTableInputId
NumericTableInputId
Available identifiers of input numeric tables for making decision forest model-based prediction...
Definition: decision_forest_regression_predict_types.h:67
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_forest::regression::prediction::model
Definition: decision_forest_regression_predict_types.h:79
daal::algorithms::math::abs::value
Definition: abs_types.h:86
daal::algorithms::regression::prediction::model
Definition: regression_predict_types.h:62