22 #ifndef __REGRESSION_PREDICT_TYPES_H__
23 #define __REGRESSION_PREDICT_TYPES_H__
25 #include "data_management/data/numeric_table.h"
26 #include "algorithms/algorithm_types.h"
27 #include "algorithms/regression/regression_model.h"
50 enum NumericTableInputId
53 lastNumericTableInputId = data
62 model = lastNumericTableInputId + 1,
63 lastModelInputId = model
73 lastResultId = prediction
85 class DAAL_EXPORT Input :
public daal::algorithms::Input
89 Input(
size_t nElements = 0);
90 Input(
const Input& other);
97 data_management::NumericTablePtr
get(NumericTableInputId id)
const;
104 regression::ModelPtr
get(ModelInputId id)
const;
111 void set(NumericTableInputId
id,
const data_management::NumericTablePtr &value);
118 void set(ModelInputId
id,
const regression::ModelPtr &value);
125 services::Status check(
const daal::algorithms::Parameter *parameter,
int method)
const DAAL_C11_OVERRIDE;
133 class DAAL_EXPORT Result :
public daal::algorithms::Result
136 DECLARE_SERIALIZABLE_CAST(Result);
137 Result(
size_t nElements = 0);
144 data_management::NumericTablePtr
get(ResultId id)
const;
151 void set(ResultId
id,
const data_management::NumericTablePtr &value);
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);
171 typedef services::SharedPtr<Result> ResultPtr;
172 typedef services::SharedPtr<const Result> ResultConstPtr;
174 using interface1::Input;
175 using interface1::Result;
176 using interface1::ResultPtr;
177 using interface1::ResultConstPtr;
daal::algorithms::regression::prediction::interface1::Result
Provides interface for the result of the regression model-based prediction.
Definition: regression_predict_types.h:133
daal
Definition: algorithm_base_common.h:31
daal::algorithms::regression::prediction::ModelInputId
ModelInputId
Available identifiers of input models for making the regression model-based prediction.
Definition: regression_predict_types.h:60
daal::algorithms::regression::prediction::prediction
Definition: regression_predict_types.h:72
daal::algorithms::regression::prediction::data
Definition: regression_predict_types.h:52
daal::algorithms::regression::prediction::NumericTableInputId
NumericTableInputId
Available identifiers of input numeric tables for making the regression model-based prediction...
Definition: regression_predict_types.h:50
daal::algorithms::math::abs::value
Definition: abs_types.h:86
daal::algorithms::regression::prediction::ResultId
ResultId
Available identifiers of the result for making the regression model-based prediction.
Definition: regression_predict_types.h:70
daal::algorithms::regression::prediction::model
Definition: regression_predict_types.h:62