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
88 typedef algorithms::classifier::prediction::Input InputType;
89 typedef algorithms::classifier::Parameter ParameterType;
90 typedef algorithms::classifier::prediction::Result ResultType;
103 Batch(
const Batch &other)
114 virtual InputType * getInput() = 0;
120 ResultPtr getResult()
131 services::Status setResult(
const ResultPtr &result)
133 DAAL_CHECK(result, services::ErrorNullResult)
135 _res = _result.get();
136 return services::Status();
144 services::SharedPtr<Batch> clone()
const 146 return services::SharedPtr<Batch>(cloneImpl());
153 _result.reset(
new ResultType());
155 virtual Batch * cloneImpl()
const DAAL_C11_OVERRIDE = 0;
160 using interface1::Batch;
daal::algorithms::classifier::prediction::interface1::Batch::Batch
Batch(const Batch &other)
Definition: classifier_predict.h:103
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::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::classifier::interface1::Parameter
Base class for the parameters of the classification algorithm.
Definition: classifier_model.h:81
daal::algorithms::classifier::prediction::interface1::Batch::getInput
virtual InputType * getInput()=0
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::classifier::prediction::interface1::Batch
Base class for making predictions based on the model of the classification algorithms.
Definition: classifier_predict.h:85
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::services::interface1::SharedPtr::reset
void reset()
Definition: daal_shared_ptr.h:265
daal::algorithms::classifier::prediction::interface1::Batch::clone
services::SharedPtr< Batch > clone() const
Definition: classifier_predict.h:144
daal::algorithms::classifier::prediction::interface1::Batch::setResult
services::Status setResult(const ResultPtr &result)
Definition: classifier_predict.h:131
daal::services::ErrorNullResult
Definition: error_indexes.h:122
daal::algorithms::classifier::prediction::interface1::Batch::getResult
ResultPtr getResult()
Definition: classifier_predict.h:120