24 #ifndef __LINEAR_MODEL_PREDICT_TYPES_H__
25 #define __LINEAR_MODEL_PREDICT_TYPES_H__
27 #include "data_management/data/numeric_table.h"
28 #include "algorithms/algorithm_types.h"
29 #include "algorithms/linear_model/linear_model_model.h"
30 #include "algorithms/regression/regression_predict_types.h"
36 namespace linear_model
62 enum NumericTableInputId
64 data = regression::prediction::data,
65 lastNumericTableInputId = data
74 model = regression::prediction::model,
75 lastModelInputId = model
84 prediction = regression::prediction::prediction,
85 lastResultId = prediction
97 class DAAL_EXPORT Input :
public regression::prediction::Input
101 Input(
size_t nElements = 0);
102 Input(
const Input& other);
109 data_management::NumericTablePtr
get(NumericTableInputId id)
const;
116 linear_model::ModelPtr
get(ModelInputId id)
const;
123 void set(NumericTableInputId
id,
const data_management::NumericTablePtr &value);
130 void set(ModelInputId
id,
const linear_model::ModelPtr &value);
137 services::Status check(
const daal::algorithms::Parameter *parameter,
int method)
const DAAL_C11_OVERRIDE;
145 class DAAL_EXPORT Result :
public regression::prediction::Result
148 DECLARE_SERIALIZABLE_CAST(Result);
149 Result(
size_t nElements = 0);
156 data_management::NumericTablePtr
get(ResultId id)
const;
163 void set(ResultId
id,
const data_management::NumericTablePtr &value);
173 template <
typename algorithmFPType>
174 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
const int method);
184 services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
188 template<
typename Archive,
bool onDeserialize>
189 services::Status serialImpl(Archive *arch)
191 return regression::prediction::Result::serialImpl<Archive, onDeserialize>(arch);
194 typedef services::SharedPtr<Result> ResultPtr;
195 typedef services::SharedPtr<const Result> ResultConstPtr;
197 using interface1::Input;
198 using interface1::Result;
199 using interface1::ResultPtr;
200 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:62
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:82
daal::algorithms::linear_model::prediction::Method
Method
Available methods for making the regression model-based prediction.
Definition: linear_model_predict_types.h:53
daal::algorithms::linear_model::prediction::data
Definition: linear_model_predict_types.h:64
daal::algorithms::linear_model::prediction::prediction
Definition: linear_model_predict_types.h:84
daal::algorithms::neural_networks::prediction::prediction
Definition: neural_networks_prediction_result.h:55
daal::algorithms::linear_model::prediction::model
Definition: linear_model_predict_types.h:74
daal::algorithms::regression::prediction::data
Definition: regression_predict_types.h:54
daal::algorithms::linear_model::prediction::interface1::Input
Provides an interface for input objects for making the regression model-based prediction.
Definition: linear_model_predict_types.h:97
daal::algorithms::linear_model::prediction::defaultDense
Definition: linear_model_predict_types.h:55
daal::algorithms::regression::prediction::prediction
Definition: regression_predict_types.h:74
daal::algorithms::math::abs::value
Definition: abs_types.h:88
daal::algorithms::linear_model::prediction::interface1::Result
Provides interface for the result of the regression model-based prediction.
Definition: linear_model_predict_types.h:145
daal::algorithms::regression::prediction::model
Definition: regression_predict_types.h:64
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:72