22 #ifndef __LINEAR_MODEL_PREDICT_H__
23 #define __LINEAR_MODEL_PREDICT_H__
25 #include "algorithms/linear_model/linear_model_predict_types.h"
26 #include "algorithms/regression/regression_predict.h"
32 namespace linear_model
47 template<
typename algorithmFPType, Method method, CpuType cpu>
48 class DAAL_EXPORT BatchContainer :
public PredictionContainerIface
55 BatchContainer(daal::services::Environment::env *daalEnv);
62 services::Status compute() DAAL_C11_OVERRIDE;
80 template<
typename algorithmFPType = DAAL_ALGORITHM_FP_TYPE, Method method = defaultDense>
81 class Batch :
public regression::prediction::Batch
84 typedef algorithms::linear_model::prediction::Input InputType;
85 typedef algorithms::linear_model::Parameter ParameterType;
86 typedef algorithms::linear_model::prediction::Result ResultType;
92 virtual int getMethod() const DAAL_C11_OVERRIDE {
return(
int)method; }
98 ResultPtr getResult() {
return ResultType::cast(_result); }
102 using interface1::Batch;
103 using interface1::BatchContainer;
daal
Definition: algorithm_base_common.h:31
daal::algorithms::linear_model::prediction::interface1::BatchContainer
Class containing computation methods for the regression model-based prediction.
Definition: linear_model_predict.h:48
daal::algorithms::linear_model::prediction::interface1::Batch
Provides methods to run implementations of the regression model-based prediction. ...
Definition: linear_model_predict.h:81
daal::algorithms::PredictionContainerIface
Abstract interface class that provides virtual methods to access and run implementations of the algor...
Definition: prediction.h:40
daal::algorithms::linear_model::prediction::interface1::Batch::getMethod
virtual int getMethod() const DAAL_C11_OVERRIDE
Definition: linear_model_predict.h:92
daal::algorithms::classifier::prediction::prediction
Definition: classifier_predict_types.h:76
daal::algorithms::linear_model::prediction::interface1::Batch::getResult
ResultPtr getResult()
Definition: linear_model_predict.h:98