22 #ifndef __BROWN_BOOST_MODEL_H__
23 #define __BROWN_BOOST_MODEL_H__
25 #include "algorithms/algorithm.h"
26 #include "data_management/data/homogen_numeric_table.h"
27 #include "algorithms/boosting/boosting_model.h"
55 struct DAAL_EXPORT Parameter :
public boosting::Parameter
70 Parameter(services::SharedPtr<weak_learner::training::Batch> wlTrainForParameter,
71 services::SharedPtr<weak_learner::prediction::Batch> wlPredictForParameter,
72 double acc = 0.3,
size_t maxIter = 10,
double nrAcc = 1.0e-3,
size_t nrMaxIter = 100,
double dcThreshold = 1.0e-2);
74 double accuracyThreshold;
76 double newtonRaphsonAccuracyThreshold;
77 size_t newtonRaphsonMaxIterations;
78 double degenerateCasesThreshold;
80 services::Status check() const DAAL_C11_OVERRIDE;
92 class DAAL_EXPORT Model : public boosting::Model
95 DECLARE_MODEL(Model, classifier::Model)
104 template <
typename modelFPType>
105 DAAL_EXPORT Model(
size_t nFeatures, modelFPType dummy);
111 Model() : boosting::Model(), _alpha() { }
120 template<
typename modelFPType>
121 DAAL_EXPORT
static services::SharedPtr<Model> create(
size_t nFeatures, services::Status *stat = NULL);
131 data_management::NumericTablePtr getAlpha();
134 data_management::NumericTablePtr _alpha;
136 template<
typename Archive,
bool onDeserialize>
137 services::Status serialImpl(Archive *arch)
139 services::Status st = boosting::Model::serialImpl<Archive, onDeserialize>(arch);
142 arch->setSharedPtrObj(_alpha);
147 template <
typename modelFPType>
148 DAAL_EXPORT Model(
size_t nFeatures, modelFPType dummy, services::Status &st);
151 typedef services::SharedPtr<Model> ModelPtr;
154 using interface1::Parameter;
155 using interface1::Model;
156 using interface1::ModelPtr;
daal::algorithms::brownboost::interface1::Model
Model of the classifier trained by the brownboost::training::Batch algorithm.
Definition: brownboost_model.h:92
daal
Definition: algorithm_base_common.h:31
daal::algorithms::brownboost::interface1::Parameter::maxIterations
size_t maxIterations
Definition: brownboost_model.h:75
daal::algorithms::brownboost::interface1::Parameter::newtonRaphsonMaxIterations
size_t newtonRaphsonMaxIterations
Definition: brownboost_model.h:77
daal::algorithms::brownboost::interface1::Parameter::accuracyThreshold
double accuracyThreshold
Definition: brownboost_model.h:74
daal::algorithms::brownboost::interface1::Model::Model
Model()
Definition: brownboost_model.h:111
daal::algorithms::brownboost::interface1::Parameter
BrownBoost algorithm parameters.
Definition: brownboost_model.h:55
daal::algorithms::brownboost::interface1::Parameter::degenerateCasesThreshold
double degenerateCasesThreshold
Definition: brownboost_model.h:78
daal::algorithms::brownboost::interface1::Parameter::newtonRaphsonAccuracyThreshold
double newtonRaphsonAccuracyThreshold
Definition: brownboost_model.h:76