22 #ifndef __CLASSIFIER_PREDICT_H__
23 #define __CLASSIFIER_PREDICT_H__
25 #include "algorithms/algorithm.h"
26 #include "algorithms/classifier/classifier_predict_types.h"
59 class Batch :
public daal::algorithms::Prediction
62 typedef algorithms::classifier::prediction::Input InputType;
63 typedef algorithms::classifier::Parameter ParameterType;
64 typedef algorithms::classifier::prediction::Result ResultType;
77 Batch(
const Batch &other)
88 virtual InputType * getInput() = 0;
105 services::Status setResult(
const ResultPtr &result)
107 DAAL_CHECK(result, services::ErrorNullResult)
109 _res = _result.get();
110 return services::Status();
118 services::SharedPtr<Batch> clone()
const
120 return services::SharedPtr<Batch>(cloneImpl());
127 _result.reset(
new ResultType());
129 virtual Batch * cloneImpl() const DAAL_C11_OVERRIDE = 0;
134 using interface1::Batch;
daal::algorithms::classifier::prediction::interface1::Batch::Batch
Batch(const Batch &other)
Definition: classifier_predict.h:77
daal
Definition: algorithm_base_common.h:31
daal::algorithms::classifier::prediction::interface1::Batch::getInput
virtual InputType * getInput()=0
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::classifier::prediction::interface1::Batch
Base class for making predictions based on the model of the classification algorithms.
Definition: classifier_predict.h:59
daal::algorithms::classifier::prediction::prediction
Definition: classifier_predict_types.h:76
daal::algorithms::classifier::prediction::interface1::Batch::clone
services::SharedPtr< Batch > clone() const
Definition: classifier_predict.h:118
daal::algorithms::classifier::prediction::interface1::Batch::setResult
services::Status setResult(const ResultPtr &result)
Definition: classifier_predict.h:105
daal::services::ErrorNullResult
Definition: error_indexes.h:96
daal::algorithms::classifier::prediction::interface1::Batch::getResult
ResultPtr getResult()
Definition: classifier_predict.h:94