48 #ifndef __REGRESSION_PREDICT_H__ 49 #define __REGRESSION_PREDICT_H__ 51 #include "algorithms/algorithm.h" 52 #include "algorithms/regression/regression_predict_types.h" 77 class Batch :
public daal::algorithms::Prediction
80 typedef algorithms::regression::prediction::Input InputType;
81 typedef algorithms::Parameter ParameterType;
82 typedef algorithms::regression::prediction::Result ResultType;
85 virtual InputType* getInput() = 0;
93 services::Status setResult(
const ResultPtr& res)
95 DAAL_CHECK(res, services::ErrorNullResult)
98 return services::Status();
105 ResultPtr getResult() {
return _result; }
112 using interface1::Batch;
daal::algorithms::regression::prediction::interface1::Result
Provides interface for the result of the regression model-based prediction.
Definition: regression_predict_types.h:159
daal::services::interface1::Status
Class that holds the results of API calls. In case of API routine failure it contains the list of err...
Definition: error_handling.h:491
daal
Definition: algorithm_base_common.h:57
daal::algorithms::neural_networks::prediction::prediction
Definition: neural_networks_prediction_result.h:79
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:76
daal::algorithms::regression::prediction::interface1::Batch::getResult
ResultPtr getResult()
Definition: regression_predict.h:105
daal::algorithms::interface1::Parameter
Base class to represent computation parameters. Algorithm-specific parameters are represented as deri...
Definition: algorithm_types.h:86
daal::services::interface1::SharedPtr
Shared pointer that retains shared ownership of an object through a pointer. Several SharedPtr object...
Definition: daal_shared_ptr.h:187
daal::services::interface1::SharedPtr::get
T * get() const
Definition: daal_shared_ptr.h:332
daal::algorithms::regression::prediction::interface1::Batch::setResult
services::Status setResult(const ResultPtr &res)
Definition: regression_predict.h:93
daal::algorithms::regression::prediction::interface1::Batch
Provides methods to run implementations of the regression model-based prediction. ...
Definition: regression_predict.h:77
daal::services::ErrorNullResult
Definition: error_indexes.h:122