22 #ifndef __LINEAR_MODEL_PREDICT_TYPES_H__
23 #define __LINEAR_MODEL_PREDICT_TYPES_H__
25 #include "data_management/data/numeric_table.h"
26 #include "algorithms/algorithm_types.h"
27 #include "algorithms/linear_model/linear_model_model.h"
28 #include "algorithms/regression/regression_predict_types.h"
34 namespace linear_model
60 enum NumericTableInputId
62 data = regression::prediction::data,
63 lastNumericTableInputId = data
72 model = regression::prediction::model,
73 lastModelInputId = model
82 prediction = regression::prediction::prediction,
83 lastResultId = prediction
95 class DAAL_EXPORT Input :
public regression::prediction::Input
99 Input(
size_t nElements = 0);
100 Input(
const Input& other);
107 data_management::NumericTablePtr
get(NumericTableInputId id)
const;
114 linear_model::ModelPtr
get(ModelInputId id)
const;
121 void set(NumericTableInputId
id,
const data_management::NumericTablePtr &value);
128 void set(ModelInputId
id,
const linear_model::ModelPtr &value);
135 services::Status check(
const daal::algorithms::Parameter *parameter,
int method)
const DAAL_C11_OVERRIDE;
143 class DAAL_EXPORT Result :
public regression::prediction::Result
146 DECLARE_SERIALIZABLE_CAST(Result);
147 Result(
size_t nElements = 0);
154 data_management::NumericTablePtr
get(ResultId id)
const;
161 void set(ResultId
id,
const data_management::NumericTablePtr &value);
171 template <
typename algorithmFPType>
172 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
const int method);
182 services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
186 template<
typename Archive,
bool onDeserialize>
187 services::Status serialImpl(Archive *arch)
189 return regression::prediction::Result::serialImpl<Archive, onDeserialize>(arch);
192 typedef services::SharedPtr<Result> ResultPtr;
193 typedef services::SharedPtr<const Result> ResultConstPtr;
195 using interface1::Input;
196 using interface1::Result;
197 using interface1::ResultPtr;
198 using interface1::ResultConstPtr;
daal::algorithms::linear_model::prediction::NumericTableInputId
NumericTableInputId
Available identifiers of input numeric tables for making the regression model-based prediction...
Definition: linear_model_predict_types.h:60
daal::algorithms::linear_model::prediction::ResultId
ResultId
Available identifiers of the result for making the regression model-based prediction.
Definition: linear_model_predict_types.h:80
daal::algorithms::linear_model::prediction::interface1::Result
Provides interface for the result of the regression model-based prediction.
Definition: linear_model_predict_types.h:143
daal
Definition: algorithm_base_common.h:31
daal::algorithms::linear_model::prediction::data
Definition: linear_model_predict_types.h:62
daal::algorithms::linear_model::prediction::ModelInputId
ModelInputId
Available identifiers of input models for making the regression model-based prediction.
Definition: linear_model_predict_types.h:70
daal::algorithms::linear_model::prediction::prediction
Definition: linear_model_predict_types.h:82
daal::algorithms::linear_model::prediction::Method
Method
Available methods for making the regression model-based prediction.
Definition: linear_model_predict_types.h:51
daal::algorithms::regression::prediction::prediction
Definition: regression_predict_types.h:72
daal::algorithms::linear_model::prediction::defaultDense
Definition: linear_model_predict_types.h:53
daal::algorithms::regression::prediction::data
Definition: regression_predict_types.h:52
daal::algorithms::linear_model::prediction::model
Definition: linear_model_predict_types.h:72
daal::algorithms::math::abs::value
Definition: abs_types.h:86
daal::algorithms::regression::prediction::model
Definition: regression_predict_types.h:62