48 #ifndef __RIDGE_REGRESSION_PREDICT_H__
49 #define __RIDGE_REGRESSION_PREDICT_H__
51 #include "algorithms/algorithm.h"
52 #include "services/daal_defines.h"
53 #include "algorithms/ridge_regression/ridge_regression_predict_types.h"
54 #include "algorithms/linear_model/linear_model_predict.h"
60 namespace ridge_regression
91 template<
typename algorithmFPType = DAAL_ALGORITHM_FP_TYPE, Method method = defaultDense>
110 template<
typename algorithmFPType>
111 class Batch<algorithmFPType, defaultDense> :
public linear_model::prediction::Batch<algorithmFPType, linear_model::prediction::defaultDense>
128 Batch(
const Batch<algorithmFPType, defaultDense> &other) : input(other.input)
137 virtual int getMethod() const DAAL_C11_OVERRIDE {
return(
int)defaultDense; }
143 ResultPtr getResult() {
return Result::cast(this->_result); }
150 services::SharedPtr<Batch<algorithmFPType, defaultDense> > clone()
const
152 return services::SharedPtr<Batch<algorithmFPType, defaultDense> >(cloneImpl());
155 virtual regression::prediction::Input* getInput() DAAL_C11_OVERRIDE {
return &input; }
159 virtual Batch<algorithmFPType, defaultDense> * cloneImpl() const DAAL_C11_OVERRIDE
161 return new Batch<algorithmFPType, defaultDense>(*this);
164 services::Status allocateResult() DAAL_C11_OVERRIDE
166 services::Status s = getResult()->template allocate<algorithmFPType>(this->_in, 0, 0);
167 this->_res = this->_result.get();
173 this->_ac =
new __DAAL_ALGORITHM_CONTAINER(batch, linear_model::prediction::BatchContainer, algorithmFPType, linear_model::prediction::defaultDense)(&(this->_env));
176 this->_result.reset(
new Result());
181 using interface1::Batch;
daal
Definition: algorithm_base_common.h:57
daal::algorithms::association_rules::defaultDense
Definition: apriori_types.h:77
daal::algorithms::ridge_regression::prediction::interface1::Batch< algorithmFPType, defaultDense >::clone
services::SharedPtr< Batch< algorithmFPType, defaultDense > > clone() const
Definition: ridge_regression_predict.h:150
daal::algorithms::ridge_regression::prediction::interface1::Batch< algorithmFPType, defaultDense >::Batch
Batch(const Batch< algorithmFPType, defaultDense > &other)
Definition: ridge_regression_predict.h:128
daal::algorithms::ridge_regression::prediction::interface1::Batch< algorithmFPType, defaultDense >::input
Input input
Definition: ridge_regression_predict.h:114
daal::batch
Definition: daal_defines.h:131
daal::algorithms::ridge_regression::prediction::interface1::Batch< algorithmFPType, defaultDense >
Provides methods to run implementations of the ridge regression model-based prediction.
Definition: ridge_regression_predict.h:111
daal::algorithms::ridge_regression::prediction::interface1::Batch
Provides methods to run implementations of the ridge regression model-based prediction.
Definition: ridge_regression_predict.h:92
daal::algorithms::linear_model::prediction::defaultDense
Definition: linear_model_predict_types.h:79
daal::algorithms::classifier::prediction::prediction
Definition: classifier_predict_types.h:102
daal::algorithms::ridge_regression::prediction::interface1::Batch< algorithmFPType, defaultDense >::Batch
Batch()
Definition: ridge_regression_predict.h:117
daal::algorithms::ridge_regression::prediction::interface1::Batch< algorithmFPType, defaultDense >::getResult
ResultPtr getResult()
Definition: ridge_regression_predict.h:143
daal::algorithms::ridge_regression::prediction::interface1::Batch< algorithmFPType, defaultDense >::getMethod
virtual int getMethod() const DAAL_C11_OVERRIDE
Definition: ridge_regression_predict.h:137