24 #ifndef __DECISION_FOREST_REGRESSSION_PREDICT_TYPES_H__
25 #define __DECISION_FOREST_REGRESSSION_PREDICT_TYPES_H__
27 #include "algorithms/algorithm.h"
28 #include "data_management/data/numeric_table.h"
29 #include "data_management/data/data_serialize.h"
30 #include "services/daal_defines.h"
31 #include "algorithms/decision_forest/decision_forest_regression_model.h"
32 #include "algorithms/regression/regression_predict_types.h"
41 namespace decision_forest
69 enum NumericTableInputId
71 data = algorithms::regression::prediction::data,
72 lastNumericTableInputId = data
81 model = algorithms::regression::prediction::model,
82 lastModelInputId = model
91 prediction = algorithms::regression::prediction::prediction,
92 lastResultId = prediction
105 class DAAL_EXPORT Input :
public algorithms::regression::prediction::Input
109 Input(
const Input& other);
116 data_management::NumericTablePtr
get(NumericTableInputId id)
const;
123 decision_forest::regression::ModelPtr
get(ModelInputId id)
const;
130 void set(NumericTableInputId
id,
const data_management::NumericTablePtr &value);
137 void set(ModelInputId
id,
const decision_forest::regression::ModelPtr &value);
143 services::Status check(
const daal::algorithms::Parameter *parameter,
int method)
const DAAL_C11_OVERRIDE;
150 class DAAL_EXPORT Result :
public algorithms::regression::prediction::Result
153 DECLARE_SERIALIZABLE_CAST(Result)
161 data_management::NumericTablePtr
get(ResultId id)
const;
168 void set(ResultId
id,
const data_management::NumericTablePtr &value);
177 template <
typename algorithmFPType>
178 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
const int method);
187 services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
191 template<
typename Archive,
bool onDeserialize>
192 services::Status serialImpl(Archive *arch)
194 return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
197 typedef services::SharedPtr<Result> ResultPtr;
198 typedef services::SharedPtr<const Result> ResultConstPtr;
201 using interface1::Input;
202 using interface1::Result;
203 using interface1::ResultPtr;
204 using interface1::ResultConstPtr;
daal::algorithms::decision_forest::regression::prediction::data
Definition: decision_forest_regression_predict_types.h:71
daal::algorithms::neural_networks::prediction::prediction
Definition: neural_networks_prediction_result.h:55
daal::algorithms::regression::prediction::data
Definition: regression_predict_types.h:54
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:79
daal::algorithms::decision_forest::regression::prediction::Method
Method
Available methods for making decision forest model-based prediction.
Definition: decision_forest_regression_predict_types.h:60
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:89
daal::algorithms::regression::prediction::prediction
Definition: regression_predict_types.h:74
daal::algorithms::decision_forest::regression::prediction::prediction
Definition: decision_forest_regression_predict_types.h:91
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:69
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:150
daal::algorithms::math::abs::value
Definition: abs_types.h:88
daal::algorithms::decision_forest::regression::prediction::interface1::Input
Provides an interface for input objects for making decision forest model-based prediction.
Definition: decision_forest_regression_predict_types.h:105
daal::algorithms::regression::prediction::model
Definition: regression_predict_types.h:64
daal::algorithms::decision_forest::regression::prediction::model
Definition: decision_forest_regression_predict_types.h:81