24 #ifndef __REGRESSION_PREDICT_H__
25 #define __REGRESSION_PREDICT_H__
27 #include "algorithms/algorithm.h"
28 #include "algorithms/regression/regression_predict_types.h"
53 class Batch :
public daal::algorithms::Prediction
56 typedef algorithms::regression::prediction::Input InputType;
57 typedef algorithms::Parameter ParameterType;
58 typedef algorithms::regression::prediction::Result ResultType;
61 virtual InputType* getInput() = 0;
69 services::Status setResult(
const ResultPtr& res)
71 DAAL_CHECK(res, services::ErrorNullResult)
74 return services::Status();
81 ResultPtr getResult() {
return _result; }
88 services::SharedPtr<Batch> clone()
const
90 return services::SharedPtr<Batch>(cloneImpl());
95 virtual Batch * cloneImpl() const DAAL_C11_OVERRIDE = 0;
99 using interface1::Batch;
daal::algorithms::neural_networks::prediction::prediction
Definition: neural_networks_prediction_result.h:55
daal::services::ErrorNullResult
Definition: error_indexes.h:98
daal::algorithms::regression::prediction::interface1::Batch
Provides methods to run implementations of the regression model-based prediction. ...
Definition: regression_predict.h:53
daal::algorithms::regression::prediction::interface1::Batch::setResult
services::Status setResult(const ResultPtr &res)
Definition: regression_predict.h:69
daal::algorithms::regression::prediction::interface1::Batch::clone
services::SharedPtr< Batch > clone() const
Definition: regression_predict.h:88
daal::algorithms::regression::prediction::interface1::Batch::getResult
ResultPtr getResult()
Definition: regression_predict.h:81
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:52