24 #ifndef __CLASSIFIER_PREDICT_H__
25 #define __CLASSIFIER_PREDICT_H__
27 #include "algorithms/algorithm.h"
28 #include "algorithms/classifier/classifier_predict_types.h"
61 class Batch :
public daal::algorithms::Prediction
64 typedef algorithms::classifier::prediction::interface1::Input InputType;
65 typedef algorithms::classifier::interface1::Parameter ParameterType;
66 typedef algorithms::classifier::prediction::interface1::Result ResultType;
84 Batch(
const Batch &other)
95 DAAL_DEPRECATED_VIRTUAL
virtual InputType * getInput() = 0;
101 DAAL_DEPRECATED interface1::ResultPtr getResult()
112 DAAL_DEPRECATED services::Status setResult(
const interface1::ResultPtr &result)
114 DAAL_CHECK(result, services::ErrorNullResult)
116 _res = _result.get();
117 return services::Status();
125 DAAL_DEPRECATED services::SharedPtr<Batch> clone()
const
127 return services::SharedPtr<Batch>(cloneImpl());
134 _result.reset(
new ResultType());
136 virtual Batch * cloneImpl() const DAAL_C11_OVERRIDE = 0;
137 interface1::ResultPtr _result;
164 class Batch :
public daal::algorithms::Prediction
167 typedef algorithms::classifier::prediction::Input InputType;
168 typedef algorithms::classifier::Parameter ParameterType;
169 typedef algorithms::classifier::prediction::Result ResultType;
182 Batch(
const Batch &other)
194 virtual InputType * getInput() = 0;
199 ParameterType& parameter() {
return *
static_cast<ParameterType*
>(this->getBaseParameter()); }
211 ResultPtr getResult()
222 services::Status setResult(
const ResultPtr &result)
224 DAAL_CHECK(result, services::ErrorNullResult)
226 _res = _result.get();
227 return services::Status();
235 services::SharedPtr<Batch> clone()
const
237 return services::SharedPtr<Batch>(cloneImpl());
244 _result.reset(
new ResultType());
246 virtual Batch * cloneImpl() const DAAL_C11_OVERRIDE = 0;
251 using interface2::Batch;
daal::algorithms::classifier::prediction::interface1::Batch::setResult
DAAL_DEPRECATED services::Status setResult(const interface1::ResultPtr &result)
Definition: classifier_predict.h:112
daal::algorithms::classifier::prediction::interface1::Batch::Batch
Batch(const Batch &other)
Definition: classifier_predict.h:84
daal::algorithms::classifier::prediction::interface2::Batch::Batch
Batch(const Batch &other)
Definition: classifier_predict.h:182
daal::algorithms::neural_networks::prediction::prediction
Definition: neural_networks_prediction_result.h:55
daal::algorithms::classifier::prediction::interface1::Batch::clone
DAAL_DEPRECATED services::SharedPtr< Batch > clone() const
Definition: classifier_predict.h:125
daal::algorithms::classifier::prediction::interface1::Batch::Batch
Batch()
Definition: classifier_predict.h:72
daal::algorithms::classifier::prediction::interface2::Batch::setResult
services::Status setResult(const ResultPtr &result)
Definition: classifier_predict.h:222
daal::services::ErrorNullResult
Definition: error_indexes.h:98
daal::algorithms::classifier::prediction::interface1::Input
Input objects in the prediction stage of the classification algorithm.
Definition: classifier_predict_types.h:111
daal::algorithms::classifier::prediction::interface2::Batch::getResult
ResultPtr getResult()
Definition: classifier_predict.h:211
daal::algorithms::classifier::prediction::interface1::Batch::getResult
DAAL_DEPRECATED interface1::ResultPtr getResult()
Definition: classifier_predict.h:101
daal::algorithms::classifier::prediction::interface1::Result
Provides methods to access prediction results obtained with the compute() method of the classifier pr...
Definition: classifier_predict_types.h:168
daal::algorithms::classifier::prediction::interface2::Batch::clone
services::SharedPtr< Batch > clone() const
Definition: classifier_predict.h:235
daal::algorithms::classifier::interface1::Parameter
Base class for the parameters of the classification algorithm.
Definition: classifier_model.h:69
daal::algorithms::classifier::prediction::interface2::Batch
Base class for making predictions based on the model of the classification algorithms.
Definition: classifier_predict.h:164
daal::algorithms::classifier::prediction::interface2::Batch::parameter
ParameterType & parameter()
Definition: classifier_predict.h:199
daal::algorithms::classifier::prediction::interface1::Batch
Base class for making predictions based on the model of the classification algorithms.
Definition: classifier_predict.h:61
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
daal::algorithms::classifier::prediction::interface1::Batch::getInput
virtual DAAL_DEPRECATED_VIRTUAL InputType * getInput()=0