48 #ifndef __CLASSIFIER_PREDICT_H__
49 #define __CLASSIFIER_PREDICT_H__
51 #include "algorithms/algorithm.h"
52 #include "algorithms/classifier/classifier_predict_types.h"
85 class Batch :
public daal::algorithms::Prediction
99 Batch(
const Batch &other)
110 virtual Input * getInput() = 0;
116 ResultPtr getResult()
127 services::Status setResult(
const ResultPtr &result)
129 DAAL_CHECK(result, services::ErrorNullResult)
131 _res = _result.get();
132 return services::Status();
140 services::SharedPtr<Batch> clone()
const
142 return services::SharedPtr<Batch>(cloneImpl());
149 _result.reset(
new Result());
151 virtual Batch * cloneImpl() const DAAL_C11_OVERRIDE = 0;
156 using interface1::Batch;
daal::algorithms::classifier::prediction::interface1::Batch::Batch
Batch(const Batch &other)
Definition: classifier_predict.h:99
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:190
daal
Definition: algorithm_base_common.h:57
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::classifier::prediction::interface1::Batch
Base class for making predictions based on the model of the classification algorithms.
Definition: classifier_predict.h:85
daal::algorithms::classifier::prediction::interface1::Batch::getInput
virtual Input * getInput()=0
daal::algorithms::classifier::prediction::prediction
Definition: classifier_predict_types.h:102
daal::algorithms::classifier::prediction::interface1::Batch::clone
services::SharedPtr< Batch > clone() const
Definition: classifier_predict.h:140
daal::algorithms::classifier::prediction::interface1::Batch::setResult
services::Status setResult(const ResultPtr &result)
Definition: classifier_predict.h:127
daal::services::ErrorNullResult
Definition: error_indexes.h:122
daal::algorithms::classifier::prediction::interface1::Batch::getResult
ResultPtr getResult()
Definition: classifier_predict.h:116