25 #ifndef __STUMP_REGRESSION_PREDICT_TYPES_H__
26 #define __STUMP_REGRESSION_PREDICT_TYPES_H__
28 #include "algorithms/algorithm.h"
29 #include "algorithms/stump/stump_regression_model.h"
31 #include "data_management/data/homogen_numeric_table.h"
32 #include "algorithms/regression/regression_predict_types.h"
60 prediction = algorithms::regression::prediction::prediction,
61 lastResultId = prediction
74 class DAAL_EXPORT Input :
public daal::algorithms::regression::prediction::Input
76 typedef daal::algorithms::regression::prediction::Input super;
79 Input(
const Input &other);
91 data_management::NumericTablePtr
get(daal::algorithms::regression::prediction::NumericTableInputId id)
const;
98 stump::regression::ModelPtr
get(daal::algorithms::regression::prediction::ModelInputId id)
const;
105 void set(daal::algorithms::regression::prediction::NumericTableInputId
id,
const data_management::NumericTablePtr &ptr);
112 void set(daal::algorithms::regression::prediction::ModelInputId
id,
const stump::regression::ModelPtr &ptr);
119 services::Status check(
const daal::algorithms::Parameter *parameter,
int method)
const DAAL_C11_OVERRIDE;
126 class DAAL_EXPORT Result :
public algorithms::regression::prediction::Result
129 DECLARE_SERIALIZABLE_CAST(Result);
137 data_management::NumericTablePtr
get(ResultId id)
const;
144 void set(ResultId
id,
const data_management::NumericTablePtr &value);
152 template <
typename algorithmFPType>
153 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
const int method);
161 services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
165 template<
typename Archive,
bool onDeserialize>
166 services::Status serialImpl(Archive *arch)
168 return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
172 typedef services::SharedPtr<Result> ResultPtr;
173 typedef services::SharedPtr<const Result> ResultConstPtr;
177 using interface1::Input;
178 using interface1::Result;
179 using interface1::ResultPtr;
180 using interface1::ResultConstPtr;
daal::algorithms::stump::regression::prediction::interface1::Input
Input objects in the prediction stage of the stump algorithm.
Definition: stump_regression_predict_types.h:74
daal::algorithms::neural_networks::prediction::prediction
Definition: neural_networks_prediction_result.h:55
daal::algorithms::regression::prediction::ModelInputId
ModelInputId
Available identifiers of input models for making the regression model-based prediction.
Definition: regression_predict_types.h:62
daal::algorithms::regression::prediction::NumericTableInputId
NumericTableInputId
Available identifiers of input numeric tables for making the regression model-based prediction...
Definition: regression_predict_types.h:52
daal::algorithms::regression::prediction::prediction
Definition: regression_predict_types.h:74
daal::algorithms::stump::regression::prediction::interface1::Result
Provides interface for the result of stump model-based prediction.
Definition: stump_regression_predict_types.h:126
daal::algorithms::math::abs::value
Definition: abs_types.h:88
daal::algorithms::stump::regression::prediction::prediction
Definition: stump_regression_predict_types.h:60
daal::algorithms::stump::regression::prediction::ResultId
ResultId
Available identifiers of the result for making decision tree model-based prediction.
Definition: stump_regression_predict_types.h:58