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::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::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::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::boosting::interface1::Parameter
Base class for parameters of the boosting algorithm
Definition: boosting_model.h:84
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