48 #ifndef __STUMP_PREDICT_H__
49 #define __STUMP_PREDICT_H__
51 #include "algorithms/algorithm.h"
52 #include "algorithms/weak_learner/weak_learner_predict.h"
53 #include "algorithms/stump/stump_predict_types.h"
94 template<
typename algorithmFPType, Method method, CpuType cpu>
95 class DAAL_EXPORT BatchContainer :
public PredictionContainerIface
102 BatchContainer(daal::services::Environment::env *daalEnv);
108 services::Status compute() DAAL_C11_OVERRIDE;
131 template<
typename algorithmFPType = DAAL_ALGORITHM_FP_TYPE, Method method = defaultDense>
132 class Batch :
public weak_learner::prediction::Batch
148 Batch(
const Batch<algorithmFPType, method> &other) : weak_learner::prediction::Batch(other), input(other.input)
159 Input * getInput() DAAL_C11_OVERRIDE {
return &input; }
165 virtual int getMethod() const DAAL_C11_OVERRIDE {
return(
int)method; }
172 services::SharedPtr<Batch<algorithmFPType, method> > clone()
const
174 return services::SharedPtr<Batch<algorithmFPType, method> >(cloneImpl());
178 using weak_learner::prediction::Batch::_result;
180 virtual Batch<algorithmFPType, method> * cloneImpl() const DAAL_C11_OVERRIDE
182 return new Batch<algorithmFPType, method>(*this);
185 services::Status allocateResult() DAAL_C11_OVERRIDE
187 services::Status s = _result->allocate<algorithmFPType>(&input, 0, 0);
188 _res = _result.get();
195 _ac =
new __DAAL_ALGORITHM_CONTAINER(batch, BatchContainer, algorithmFPType, method)(&_env);
200 using interface1::BatchContainer;
201 using interface1::Batch;
daal::algorithms::stump::prediction::interface1::Batch::getInput
Input * getInput() DAAL_C11_OVERRIDE
Definition: stump_predict.h:159
daal
Definition: algorithm_base_common.h:57
daal::algorithms::stump::prediction::interface1::BatchContainer
Provides methods to run implementations of the decision stump prediction algorithm. It is associated with the daal::algorithms::stump::prediction::interface1::Batch class and supports methods to run based on the decision stump model.
Definition: stump_predict.h:95
daal::algorithms::stump::prediction::interface1::Batch::input
Input input
Definition: stump_predict.h:135
daal::algorithms::stump::prediction::interface1::Batch::getMethod
virtual int getMethod() const DAAL_C11_OVERRIDE
Definition: stump_predict.h:165
daal::algorithms::stump::prediction::interface1::Batch
Predicts results of the decision stump classification.
Definition: stump_predict.h:132
daal::algorithms::PredictionContainerIface
Abstract interface class that provides virtual methods to access and run implementations of the algor...
Definition: prediction.h:66
daal::algorithms::stump::prediction::interface1::Batch::clone
services::SharedPtr< Batch< algorithmFPType, method > > clone() const
Definition: stump_predict.h:172
daal::algorithms::stump::prediction::interface1::Batch::Batch
Batch(const Batch< algorithmFPType, method > &other)
Definition: stump_predict.h:148
daal::batch
Definition: daal_defines.h:131
daal::algorithms::classifier::prediction::prediction
Definition: classifier_predict_types.h:102
daal::algorithms::stump::prediction::defaultDense
Definition: stump_predict.h:77
daal::algorithms::stump::prediction::Method
Method
Definition: stump_predict.h:75