48 #ifndef __ADA_BOOST_MODEL_H__ 49 #define __ADA_BOOST_MODEL_H__ 51 #include "algorithms/algorithm.h" 52 #include "data_management/data/homogen_numeric_table.h" 53 #include "algorithms/boosting/boosting_model.h" 80 struct DAAL_EXPORT Parameter :
public boosting::Parameter
92 Parameter(services::SharedPtr<weak_learner::training::Batch> wlTrainForParameter,
93 services::SharedPtr<weak_learner::prediction::Batch> wlPredictForParameter,
94 double acc = 0.0,
size_t maxIter = 10);
96 double accuracyThreshold;
99 services::Status check() const DAAL_C11_OVERRIDE;
111 class DAAL_EXPORT Model : public boosting::Model
114 DECLARE_MODEL(Model, classifier::Model)
123 template <
typename modelFPType>
124 DAAL_EXPORT Model(
size_t nFeatures, modelFPType dummy);
130 Model() : boosting::Model(), _alpha() {}
138 template<
typename modelFPType>
139 DAAL_EXPORT
static services::SharedPtr<Model> create(
size_t nFeatures, services::Status *stat = NULL);
149 data_management::NumericTablePtr getAlpha()
const;
152 data_management::NumericTablePtr _alpha;
154 template<
typename Archive,
bool onDeserialize>
155 services::Status serialImpl(Archive *arch)
157 services::Status st = boosting::Model::serialImpl<Archive, onDeserialize>(arch);
160 arch->setSharedPtrObj(_alpha);
165 template <
typename modelFPType>
166 DAAL_EXPORT Model(
size_t nFeatures, modelFPType dummy, services::Status &st);
169 typedef services::SharedPtr<Model> ModelPtr;
172 using interface1::Parameter;
173 using interface1::Model;
174 using interface1::ModelPtr;
daal::services::interface1::Status
Class that holds the results of API calls. In case of API routine failure it contains the list of err...
Definition: error_handling.h:491
daal
Definition: algorithm_base_common.h:57
daal::algorithms::adaboost::interface1::Model
Model of the classifier trained by the adaboost::training::Batch algorithm.
Definition: adaboost_model.h:111
daal::algorithms::adaboost::interface1::Parameter::accuracyThreshold
double accuracyThreshold
Definition: adaboost_model.h:96
daal::services::interface1::SharedPtr
Shared pointer that retains shared ownership of an object through a pointer. Several SharedPtr object...
Definition: daal_shared_ptr.h:187
daal::algorithms::classifier::interface1::Model
Base class for the model of the classification algorithm.
Definition: classifier_model.h:95
daal::algorithms::adaboost::interface1::Parameter
AdaBoost algorithm parameters.
Definition: adaboost_model.h:80
daal::algorithms::boosting::interface1::Parameter
Base class for parameters of the boosting algorithm
Definition: boosting_model.h:84
daal::algorithms::adaboost::interface1::Parameter::maxIterations
size_t maxIterations
Definition: adaboost_model.h:97
daal::algorithms::adaboost::interface1::Model::Model
Model()
Definition: adaboost_model.h:130