22 #ifndef __LOGIT_BOOST_MODEL_H__
23 #define __LOGIT_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(
const services::SharedPtr<weak_learner::training::Batch>& wlTrainForParameter,
71 const services::SharedPtr<weak_learner::prediction::Batch>& wlPredictForParameter,
72 double acc = 0.0,
size_t maxIter = 10,
size_t nC = 0,
double wThr = 1e-10,
double zThr = 1e-10);
74 double accuracyThreshold;
77 double weightsDegenerateCasesThreshold;
78 double responsesDegenerateCasesThreshold;
80 services::Status check() const DAAL_C11_OVERRIDE;
92 class DAAL_EXPORT Model : public boosting::Model
95 DECLARE_MODEL(Model, classifier::Model)
105 template <
typename modelFPType>
106 DAAL_EXPORT Model(
size_t nFeatures,
const Parameter *par, modelFPType dummy);
112 Model() : boosting::Model(), _nIterations(0) { }
120 static services::SharedPtr<Model> create(
size_t nFeatures,
const Parameter *par,
121 services::Status *stat = NULL);
129 void setIterations(
size_t nIterations);
135 size_t getIterations()
const;
140 template<
typename Archive,
bool onDeserialize>
141 services::Status serialImpl(Archive *arch)
143 services::Status st = boosting::Model::serialImpl<Archive, onDeserialize>(arch);
146 arch->set(_nIterations);
151 Model(
size_t nFeatures,
const Parameter *par, services::Status &st);
153 typedef services::SharedPtr<Model> ModelPtr;
156 using interface1::Parameter;
157 using interface1::Model;
158 using interface1::ModelPtr;
daal
Definition: algorithm_base_common.h:31
daal::algorithms::em_gmm::nIterations
Definition: em_gmm_types.h:97
daal::algorithms::logitboost::interface1::Parameter::responsesDegenerateCasesThreshold
double responsesDegenerateCasesThreshold
Definition: logitboost_model.h:78
daal::algorithms::logitboost::interface1::Model::Model
Model()
Definition: logitboost_model.h:112
daal::algorithms::logitboost::interface1::Parameter::weightsDegenerateCasesThreshold
double weightsDegenerateCasesThreshold
Definition: logitboost_model.h:77
daal::algorithms::logitboost::interface1::Parameter::maxIterations
size_t maxIterations
Definition: logitboost_model.h:75
daal::algorithms::logitboost::interface1::Parameter::accuracyThreshold
double accuracyThreshold
Definition: logitboost_model.h:74
daal::algorithms::logitboost::interface1::Parameter
LogitBoost algorithm parameters.
Definition: logitboost_model.h:55
daal::algorithms::logitboost::interface1::Parameter::nClasses
size_t nClasses
Definition: logitboost_model.h:76
daal::algorithms::logitboost::interface1::Model
Model of the classifier trained by the logitboost::training::Batch algorithm.
Definition: logitboost_model.h:92