25 #include "algorithms/algorithm.h"
26 #include "data_management/data/numeric_table.h"
27 #include "services/daal_defines.h"
28 #include "algorithms/association_rules/apriori_types.h"
34 namespace association_rules
51 template<
typename algorithmFPType, Method method, CpuType cpu>
52 class DAAL_EXPORT BatchContainer :
public daal::algorithms::AnalysisContainerIface<batch>
60 BatchContainer(daal::services::Environment::env *daalEnv);
66 virtual services::Status compute();
82 template<
typename algorithmFPType = DAAL_ALGORITHM_FP_TYPE, Method method = apriori>
83 class DAAL_EXPORT Batch :
public daal::algorithms::Analysis<batch>
86 typedef algorithms::association_rules::Input InputType;
87 typedef algorithms::association_rules::Parameter ParameterType;
88 typedef algorithms::association_rules::Result ResultType;
102 Batch(
const Batch<algorithmFPType, method> &other) : input(other.input), parameter(other.parameter)
111 virtual int getMethod() const DAAL_C11_OVERRIDE {
return(
int) method; }
117 ResultPtr getResult()
126 services::Status setResult(
const ResultPtr& res)
128 DAAL_CHECK(res, services::ErrorNullResult)
130 _res = _result.get();
131 return services::Status();
139 services::SharedPtr<Batch<algorithmFPType, method> > clone()
const
141 return services::SharedPtr<Batch<algorithmFPType, method> >(cloneImpl());
145 virtual Batch<algorithmFPType, method> * cloneImpl() const DAAL_C11_OVERRIDE
147 return new Batch<algorithmFPType, method>(*this);
150 virtual services::Status allocateResult() DAAL_C11_OVERRIDE
152 services::Status s = _result->allocate<algorithmFPType>(&input, ¶meter, (int) method);
153 _res = _result.get();
159 Analysis<batch>::_ac =
new __DAAL_ALGORITHM_CONTAINER(batch, BatchContainer, algorithmFPType, method)(&_env);
162 _result.reset(
new ResultType());
166 ParameterType parameter;
173 using interface1::BatchContainer;
174 using interface1::Batch;
daal::algorithms::association_rules::interface1::Batch::Batch
Batch(const Batch< algorithmFPType, method > &other)
Definition: apriori.h:102
daal
Definition: algorithm_base_common.h:31
daal::algorithms::association_rules::interface1::Batch::parameter
ParameterType parameter
Definition: apriori.h:166
daal::algorithms::AnalysisContainerIface
Abstract interface class that provides virtual methods to access and run implementations of the analy...
Definition: analysis.h:53
daal::algorithms::association_rules::interface1::Batch::clone
services::SharedPtr< Batch< algorithmFPType, method > > clone() const
Definition: apriori.h:139
daal::algorithms::association_rules::interface1::BatchContainer
Provides methods to run implementations of the association rules algorithm. This class is associated ...
Definition: apriori.h:52
daal::algorithms::association_rules::interface1::Batch::getResult
ResultPtr getResult()
Definition: apriori.h:117
daal::batch
Definition: daal_defines.h:110
daal::algorithms::association_rules::interface1::Batch::getMethod
virtual int getMethod() const DAAL_C11_OVERRIDE
Definition: apriori.h:111
daal::algorithms::Analysis
Provides methods for execution of operations over data, such as computation of Summary Statistics est...
Definition: analysis.h:68
daal::algorithms::association_rules::interface1::Batch::input
InputType input
Definition: apriori.h:165
daal::algorithms::association_rules::interface1::Batch::setResult
services::Status setResult(const ResultPtr &res)
Definition: apriori.h:126
daal::services::ErrorNullResult
Definition: error_indexes.h:96
daal::algorithms::association_rules::interface1::Batch
Computes the result of the association rules algorithm in the batch processing mode.
Definition: apriori.h:83
daal::algorithms::association_rules::interface1::Batch::Batch
Batch()
Definition: apriori.h:91