48 #ifndef __SVM_PREDICT_H__
49 #define __SVM_PREDICT_H__
51 #include "algorithms/algorithm.h"
52 #include "data_management/data/numeric_table.h"
53 #include "algorithms/classifier/classifier_predict.h"
54 #include "algorithms/svm/svm_predict_types.h"
83 template<
typename algorithmFPType, Method method, CpuType cpu>
84 class DAAL_EXPORT BatchContainer :
public PredictionContainerIface
91 BatchContainer(daal::services::Environment::env *daalEnv);
99 services::Status compute() DAAL_C11_OVERRIDE;
119 template<
typename algorithmFPType = DAAL_ALGORITHM_FP_TYPE, Method method = defaultDense>
120 class Batch :
public classifier::prediction::Batch
138 Batch(
const Batch<algorithmFPType, method> &other) : classifier::prediction::Batch(other),
139 input(other.input), parameter(other.parameter)
150 Input * getInput() DAAL_C11_OVERRIDE {
return &input; }
156 virtual int getMethod() const DAAL_C11_OVERRIDE {
return(
int)method; }
164 services::SharedPtr<Batch<algorithmFPType, method> > clone()
const
166 return services::SharedPtr<Batch<algorithmFPType, method> >(cloneImpl());
171 virtual Batch<algorithmFPType, method> * cloneImpl() const DAAL_C11_OVERRIDE
173 return new Batch<algorithmFPType, method>(*this);
176 services::Status allocateResult() DAAL_C11_OVERRIDE
178 services::Status s = _result->allocate<algorithmFPType>(&input, 0, 0);
179 _res = _result.get();
186 _ac =
new __DAAL_ALGORITHM_CONTAINER(batch, BatchContainer, algorithmFPType, method)(&_env);
192 using interface1::BatchContainer;
193 using interface1::Batch;
daal
Definition: algorithm_base_common.h:57
daal::algorithms::svm::prediction::interface1::Batch::getInput
Input * getInput() DAAL_C11_OVERRIDE
Definition: svm_predict.h:150
daal::algorithms::PredictionContainerIface
Abstract interface class that provides virtual methods to access and run implementations of the algor...
Definition: prediction.h:66
daal::algorithms::svm::prediction::interface1::Batch::Batch
Batch(const Batch< algorithmFPType, method > &other)
Definition: svm_predict.h:138
daal::algorithms::svm::prediction::interface1::Batch::parameter
Parameter parameter
Definition: svm_predict.h:124
daal::batch
Definition: daal_defines.h:131
daal::algorithms::svm::prediction::interface1::Batch::Batch
Batch()
Definition: svm_predict.h:127
daal::algorithms::svm::prediction::interface1::Batch
Algorithm class for making predictions based on the SVM model
Definition: svm_predict.h:120
daal::algorithms::svm::prediction::interface1::Batch::clone
services::SharedPtr< Batch< algorithmFPType, method > > clone() const
Definition: svm_predict.h:164
daal::algorithms::classifier::prediction::prediction
Definition: classifier_predict_types.h:102
daal::algorithms::svm::prediction::interface1::Batch::getMethod
virtual int getMethod() const DAAL_C11_OVERRIDE
Definition: svm_predict.h:156
daal::algorithms::svm::prediction::interface1::BatchContainer
Provides methods to run implementations of the SVM algorithm. It is associated with the Prediction cl...
Definition: svm_predict.h:84
daal::algorithms::svm::prediction::interface1::Batch::input
Input input
Definition: svm_predict.h:123