48 #ifndef __BROWN_BOOST_PREDICT_H__
49 #define __BROWN_BOOST_PREDICT_H__
51 #include "algorithms/algorithm.h"
52 #include "algorithms/boosting/boosting_predict.h"
53 #include "algorithms/boosting/brownboost_model.h"
54 #include "algorithms/boosting/brownboost_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;
130 template<
typename algorithmFPType = DAAL_ALGORITHM_FP_TYPE, Method method = defaultDense>
131 class Batch :
public boosting::prediction::Batch
148 Batch(
const Batch<algorithmFPType, method> &other) : boosting::prediction::Batch(other),
149 input(other.input), parameter(other.parameter)
160 Input * getInput() DAAL_C11_OVERRIDE {
return &input; }
166 virtual int getMethod() const DAAL_C11_OVERRIDE {
return(
int)method; }
173 services::SharedPtr<Batch<algorithmFPType, method> > clone()
const
175 return services::SharedPtr<Batch<algorithmFPType, method> >(cloneImpl());
179 virtual Batch<algorithmFPType, method> * cloneImpl() const DAAL_C11_OVERRIDE
181 return new Batch<algorithmFPType, method>(*this);
184 services::Status allocateResult() DAAL_C11_OVERRIDE
186 services::Status s = _result->allocate<algorithmFPType>(&input, 0, 0);
187 _res = _result.get();
194 _ac =
new __DAAL_ALGORITHM_CONTAINER(batch, BatchContainer, algorithmFPType, method)(&_env);
199 using interface1::BatchContainer;
200 using interface1::Batch;
daal
Definition: algorithm_base_common.h:57
daal::algorithms::brownboost::prediction::interface1::BatchContainer
Provides methods to run implementations of the BrownBoost algorithm. This class is associated with da...
Definition: brownboost_predict.h:95
daal::algorithms::PredictionContainerIface
Abstract interface class that provides virtual methods to access and run implementations of the algor...
Definition: prediction.h:66
daal::algorithms::brownboost::prediction::interface1::Batch::input
Input input
Definition: brownboost_predict.h:134
daal::algorithms::brownboost::prediction::Method
Method
Definition: brownboost_predict.h:76
daal::batch
Definition: daal_defines.h:131
daal::algorithms::brownboost::prediction::interface1::Batch
Predicts BrownBoost classification results.
Definition: brownboost_predict.h:131
daal::algorithms::brownboost::prediction::interface1::Batch::getInput
Input * getInput() DAAL_C11_OVERRIDE
Definition: brownboost_predict.h:160
daal::algorithms::classifier::prediction::prediction
Definition: classifier_predict_types.h:102
daal::algorithms::brownboost::prediction::interface1::Batch::clone
services::SharedPtr< Batch< algorithmFPType, method > > clone() const
Definition: brownboost_predict.h:173
daal::algorithms::brownboost::prediction::interface1::Batch::getMethod
virtual int getMethod() const DAAL_C11_OVERRIDE
Definition: brownboost_predict.h:166
daal::algorithms::brownboost::prediction::interface1::Batch::parameter
Parameter parameter
Definition: brownboost_predict.h:135
daal::algorithms::brownboost::prediction::defaultDense
Definition: brownboost_predict.h:78
daal::algorithms::brownboost::prediction::interface1::Batch::Batch
Batch(const Batch< algorithmFPType, method > &other)
Definition: brownboost_predict.h:148