22 #ifndef __REGRESSION_PREDICT_H__
23 #define __REGRESSION_PREDICT_H__
25 #include "algorithms/algorithm.h"
26 #include "algorithms/regression/regression_predict_types.h"
51 class Batch :
public daal::algorithms::Prediction
54 typedef algorithms::regression::prediction::Input InputType;
55 typedef algorithms::Parameter ParameterType;
56 typedef algorithms::regression::prediction::Result ResultType;
59 virtual InputType* getInput() = 0;
67 services::Status setResult(
const ResultPtr& res)
69 DAAL_CHECK(res, services::ErrorNullResult)
72 return services::Status();
79 ResultPtr getResult() {
return _result; }
86 using interface1::Batch;
daal
Definition: algorithm_base_common.h:31
daal::algorithms::Prediction
Provides prediction methods depending on the model such as linear_regression::Model. The methods of the class support different computation modes: batch, distributed, and online(see ComputeMode). Classes that implement specific algorithms of the model based data prediction are derived classes of the Prediction class. The class additionally provides virtual methods for validation of input and output parameters of the algorithms.
Definition: prediction.h:50
daal::algorithms::regression::prediction::interface1::Batch::getResult
ResultPtr getResult()
Definition: regression_predict.h:79
daal::algorithms::regression::prediction::interface1::Batch::setResult
services::Status setResult(const ResultPtr &res)
Definition: regression_predict.h:67
daal::algorithms::classifier::prediction::prediction
Definition: classifier_predict_types.h:76
daal::algorithms::regression::prediction::interface1::Batch
Provides methods to run implementations of the regression model-based prediction. ...
Definition: regression_predict.h:51
daal::services::ErrorNullResult
Definition: error_indexes.h:96