48 #ifndef __BROWN_BOOST_MODEL_H__
49 #define __BROWN_BOOST_MODEL_H__
51 #include "algorithms/algorithm.h"
52 #include "data_management/data/homogen_numeric_table.h"
53 #include "algorithms/boosting/boosting_model.h"
81 struct DAAL_EXPORT Parameter :
public boosting::Parameter
96 Parameter(services::SharedPtr<weak_learner::training::Batch> wlTrainForParameter,
97 services::SharedPtr<weak_learner::prediction::Batch> wlPredictForParameter,
98 double acc = 0.3,
size_t maxIter = 10,
double nrAcc = 1.0e-3,
size_t nrMaxIter = 100,
double dcThreshold = 1.0e-2);
100 double accuracyThreshold;
101 size_t maxIterations;
102 double newtonRaphsonAccuracyThreshold;
103 size_t newtonRaphsonMaxIterations;
104 double degenerateCasesThreshold;
106 services::Status check() const DAAL_C11_OVERRIDE;
118 class DAAL_EXPORT Model : public boosting::Model
121 DECLARE_MODEL(Model, classifier::Model)
130 template <
typename modelFPType>
131 DAAL_EXPORT Model(
size_t nFeatures, modelFPType dummy);
137 Model() : boosting::Model(), _alpha() { }
146 template<
typename modelFPType>
147 DAAL_EXPORT
static services::SharedPtr<Model> create(
size_t nFeatures, services::Status *stat = NULL);
157 data_management::NumericTablePtr getAlpha();
160 data_management::NumericTablePtr _alpha;
162 template<
typename Archive,
bool onDeserialize>
163 services::Status serialImpl(Archive *arch)
165 services::Status st = boosting::Model::serialImpl<Archive, onDeserialize>(arch);
168 arch->setSharedPtrObj(_alpha);
173 template <
typename modelFPType>
174 DAAL_EXPORT Model(
size_t nFeatures, modelFPType dummy, services::Status &st);
177 typedef services::SharedPtr<Model> ModelPtr;
180 using interface1::Parameter;
181 using interface1::Model;
182 using interface1::ModelPtr;
daal::algorithms::brownboost::interface1::Model
Model of the classifier trained by the brownboost::training::Batch algorithm.
Definition: brownboost_model.h:118
daal
Definition: algorithm_base_common.h:57
daal::algorithms::brownboost::interface1::Parameter::maxIterations
size_t maxIterations
Definition: brownboost_model.h:101
daal::algorithms::brownboost::interface1::Parameter::newtonRaphsonMaxIterations
size_t newtonRaphsonMaxIterations
Definition: brownboost_model.h:103
daal::algorithms::brownboost::interface1::Parameter::accuracyThreshold
double accuracyThreshold
Definition: brownboost_model.h:100
daal::algorithms::brownboost::interface1::Model::Model
Model()
Definition: brownboost_model.h:137
daal::algorithms::brownboost::interface1::Parameter
BrownBoost algorithm parameters.
Definition: brownboost_model.h:81
daal::algorithms::brownboost::interface1::Parameter::degenerateCasesThreshold
double degenerateCasesThreshold
Definition: brownboost_model.h:104
daal::algorithms::brownboost::interface1::Parameter::newtonRaphsonAccuracyThreshold
double newtonRaphsonAccuracyThreshold
Definition: brownboost_model.h:102