48 #ifndef __DECISION_FOREST_REGRESSSION_PREDICT_TYPES_H__
49 #define __DECISION_FOREST_REGRESSSION_PREDICT_TYPES_H__
51 #include "algorithms/algorithm.h"
52 #include "data_management/data/numeric_table.h"
53 #include "data_management/data/data_serialize.h"
54 #include "services/daal_defines.h"
55 #include "algorithms/decision_forest/decision_forest_regression_model.h"
56 #include "algorithms/regression/regression_predict_types.h"
65 namespace decision_forest
93 enum NumericTableInputId
95 data = algorithms::regression::prediction::data,
96 lastNumericTableInputId = data
105 model = algorithms::regression::prediction::model,
106 lastModelInputId = model
115 prediction = algorithms::regression::prediction::prediction,
116 lastResultId = prediction
129 class DAAL_EXPORT Input :
public algorithms::regression::prediction::Input
133 Input(
const Input& other);
140 data_management::NumericTablePtr
get(NumericTableInputId id)
const;
147 decision_forest::regression::ModelPtr
get(ModelInputId id)
const;
154 void set(NumericTableInputId
id,
const data_management::NumericTablePtr &value);
161 void set(ModelInputId
id,
const decision_forest::regression::ModelPtr &value);
167 services::Status check(
const daal::algorithms::Parameter *parameter,
int method)
const DAAL_C11_OVERRIDE;
174 class DAAL_EXPORT Result :
public algorithms::regression::prediction::Result
177 DECLARE_SERIALIZABLE_CAST(Result)
185 data_management::NumericTablePtr
get(ResultId id)
const;
192 void set(ResultId
id,
const data_management::NumericTablePtr &value);
201 template <
typename algorithmFPType>
202 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
const int method);
211 services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
215 template<
typename Archive,
bool onDeserialize>
216 services::Status serialImpl(Archive *arch)
218 return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
221 typedef services::SharedPtr<Result> ResultPtr;
222 typedef services::SharedPtr<const Result> ResultConstPtr;
225 using interface1::Input;
226 using interface1::Result;
227 using interface1::ResultPtr;
228 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:103
daal
Definition: algorithm_base_common.h:57
daal::algorithms::decision_forest::regression::prediction::data
Definition: decision_forest_regression_predict_types.h:95
daal::algorithms::decision_forest::regression::prediction::prediction
Definition: decision_forest_regression_predict_types.h:115
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:174
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:113
daal::algorithms::decision_forest::regression::prediction::Method
Method
Available methods for making decision forest model-based prediction.
Definition: decision_forest_regression_predict_types.h:84
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:93
daal::algorithms::regression::prediction::prediction
Definition: regression_predict_types.h:98
daal::algorithms::regression::prediction::data
Definition: regression_predict_types.h:78
daal::algorithms::decision_forest::regression::prediction::model
Definition: decision_forest_regression_predict_types.h:105
daal::algorithms::math::abs::value
Definition: abs_types.h:112
daal::algorithms::regression::prediction::model
Definition: regression_predict_types.h:88