22 #ifndef __ADA_BOOST_MODEL_H__
23 #define __ADA_BOOST_MODEL_H__
25 #include "algorithms/algorithm.h"
26 #include "data_management/data/homogen_numeric_table.h"
27 #include "algorithms/boosting/boosting_model.h"
54 struct DAAL_EXPORT Parameter :
public boosting::Parameter
66 Parameter(services::SharedPtr<weak_learner::training::Batch> wlTrainForParameter,
67 services::SharedPtr<weak_learner::prediction::Batch> wlPredictForParameter,
68 double acc = 0.0,
size_t maxIter = 10);
70 double accuracyThreshold;
73 services::Status check() const DAAL_C11_OVERRIDE;
85 class DAAL_EXPORT Model : public boosting::Model
88 DECLARE_MODEL(Model, classifier::Model)
97 template <
typename modelFPType>
98 DAAL_EXPORT Model(
size_t nFeatures, modelFPType dummy);
104 Model() : boosting::Model(), _alpha() {}
112 template<
typename modelFPType>
113 DAAL_EXPORT
static services::SharedPtr<Model> create(
size_t nFeatures, services::Status *stat = NULL);
123 data_management::NumericTablePtr getAlpha()
const;
126 data_management::NumericTablePtr _alpha;
128 template<
typename Archive,
bool onDeserialize>
129 services::Status serialImpl(Archive *arch)
131 services::Status st = boosting::Model::serialImpl<Archive, onDeserialize>(arch);
134 arch->setSharedPtrObj(_alpha);
139 template <
typename modelFPType>
140 DAAL_EXPORT Model(
size_t nFeatures, modelFPType dummy, services::Status &st);
143 typedef services::SharedPtr<Model> ModelPtr;
146 using interface1::Parameter;
147 using interface1::Model;
148 using interface1::ModelPtr;
daal
Definition: algorithm_base_common.h:31
daal::algorithms::adaboost::interface1::Model
Model of the classifier trained by the adaboost::training::Batch algorithm.
Definition: adaboost_model.h:85
daal::algorithms::adaboost::interface1::Parameter::accuracyThreshold
double accuracyThreshold
Definition: adaboost_model.h:70
daal::algorithms::adaboost::interface1::Parameter
AdaBoost algorithm parameters.
Definition: adaboost_model.h:54
daal::algorithms::adaboost::interface1::Parameter::maxIterations
size_t maxIterations
Definition: adaboost_model.h:71
daal::algorithms::adaboost::interface1::Model::Model
Model()
Definition: adaboost_model.h:104