49 #ifndef __MULTI_CLASS_CLASSIFIER_PREDICT_H__
50 #define __MULTI_CLASS_CLASSIFIER_PREDICT_H__
52 #include "algorithms/algorithm.h"
53 #include "data_management/data/numeric_table.h"
54 #include "services/daal_defines.h"
55 #include "algorithms/classifier/classifier_predict.h"
56 #include "algorithms/multi_class_classifier/multi_class_classifier_predict_types.h"
57 #include "algorithms/multi_class_classifier/multi_class_classifier_train_types.h"
63 namespace multi_class_classifier
89 template<
typename algorithmFPType, prediction::Method pmethod, training::Method tmethod, CpuType cpu>
90 class DAAL_EXPORT BatchContainer :
public PredictionContainerIface
98 BatchContainer(daal::services::Environment::env *daalEnv);
106 services::Status compute() DAAL_C11_OVERRIDE;
130 template<
typename algorithmFPType = DAAL_ALGORITHM_FP_TYPE, prediction::Method pmethod = defaultDense, training::Method tmethod = training::oneAgainstOne>
131 class Batch :
public classifier::prediction::Batch
141 DAAL_DEPRECATED Batch() : parameter(0)
150 Batch(
size_t nClasses) : parameter(nClasses)
161 Batch(
const Batch<algorithmFPType, pmethod, tmethod> &other) : classifier::prediction::Batch(other),
162 parameter(other.parameter), input(other.input)
173 Input * getInput() DAAL_C11_OVERRIDE {
return &input; }
179 virtual int getMethod() const DAAL_C11_OVERRIDE {
return(
int)pmethod; }
186 services::SharedPtr<Batch<algorithmFPType, pmethod, tmethod> > clone()
const
188 return services::SharedPtr<Batch<algorithmFPType, pmethod, tmethod> >(cloneImpl());
193 virtual Batch<algorithmFPType, pmethod, tmethod> * cloneImpl() const DAAL_C11_OVERRIDE
195 return new Batch<algorithmFPType, pmethod, tmethod>(*this);
198 services::Status allocateResult() DAAL_C11_OVERRIDE
200 services::Status s = _result->allocate<algorithmFPType>(&input, ¶meter, (int) pmethod);
201 _res = _result.get();
208 _ac =
new __DAAL_ALGORITHM_CONTAINER(batch, BatchContainer, algorithmFPType, pmethod, tmethod)(&_env);
214 using interface1::BatchContainer;
215 using interface1::Batch;
daal
Definition: algorithm_base_common.h:57
daal::algorithms::multi_class_classifier::prediction::interface1::BatchContainer
Provides methods to run implementations of the multi-class classifier prediction algorithm.
Definition: multi_class_classifier_predict.h:90
daal::algorithms::PredictionContainerIface
Abstract interface class that provides virtual methods to access and run implementations of the algor...
Definition: prediction.h:66
daal::algorithms::multi_class_classifier::prediction::interface1::Batch::parameter
Parameter parameter
Definition: multi_class_classifier_predict.h:135
daal::batch
Definition: daal_defines.h:131
daal::algorithms::multi_class_classifier::prediction::interface1::Batch::getMethod
virtual int getMethod() const DAAL_C11_OVERRIDE
Definition: multi_class_classifier_predict.h:179
daal::algorithms::multi_class_classifier::prediction::interface1::Batch::Batch
DAAL_DEPRECATED Batch()
Definition: multi_class_classifier_predict.h:141
daal::algorithms::multi_class_classifier::prediction::interface1::Batch::getInput
Input * getInput() DAAL_C11_OVERRIDE
Definition: multi_class_classifier_predict.h:173
daal::algorithms::multi_class_classifier::prediction::interface1::Batch::clone
services::SharedPtr< Batch< algorithmFPType, pmethod, tmethod > > clone() const
Definition: multi_class_classifier_predict.h:186
daal::algorithms::classifier::prediction::prediction
Definition: classifier_predict_types.h:102
daal::algorithms::multi_class_classifier::prediction::interface1::Batch::Batch
Batch(size_t nClasses)
Definition: multi_class_classifier_predict.h:150
daal::algorithms::multi_class_classifier::prediction::interface1::Batch
Provides methods to run implementations of the multi-class classifier prediction algorithm.
Definition: multi_class_classifier_predict.h:131
daal::algorithms::multi_class_classifier::prediction::interface1::Batch::input
Input input
Definition: multi_class_classifier_predict.h:134
daal::algorithms::multi_class_classifier::prediction::interface1::Batch::Batch
Batch(const Batch< algorithmFPType, pmethod, tmethod > &other)
Definition: multi_class_classifier_predict.h:161