48 #ifndef __LOGIT_BOOST_MODEL_H__
49 #define __LOGIT_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(
const services::SharedPtr<weak_learner::training::Batch>& wlTrainForParameter,
97 const services::SharedPtr<weak_learner::prediction::Batch>& wlPredictForParameter,
98 double acc = 0.0,
size_t maxIter = 10,
size_t nC = 0,
double wThr = 1e-10,
double zThr = 1e-10);
100 double accuracyThreshold;
101 size_t maxIterations;
103 double weightsDegenerateCasesThreshold;
104 double responsesDegenerateCasesThreshold;
106 services::Status check() const DAAL_C11_OVERRIDE;
118 class DAAL_EXPORT Model : public boosting::Model
121 DECLARE_MODEL(Model, classifier::Model)
131 template <
typename modelFPType>
132 DAAL_EXPORT Model(
size_t nFeatures,
const Parameter *par, modelFPType dummy);
138 Model() : boosting::Model(), _nIterations(0) { }
146 static services::SharedPtr<Model> create(
size_t nFeatures,
const Parameter *par,
147 services::Status *stat = NULL);
155 void setIterations(
size_t nIterations);
161 size_t getIterations()
const;
166 template<
typename Archive,
bool onDeserialize>
167 services::Status serialImpl(Archive *arch)
169 services::Status st = boosting::Model::serialImpl<Archive, onDeserialize>(arch);
172 arch->set(_nIterations);
177 Model(
size_t nFeatures,
const Parameter *par, services::Status &st);
179 typedef services::SharedPtr<Model> ModelPtr;
182 using interface1::Parameter;
183 using interface1::Model;
184 using interface1::ModelPtr;
daal
Definition: algorithm_base_common.h:57
daal::algorithms::em_gmm::nIterations
Definition: em_gmm_types.h:123
daal::algorithms::logitboost::interface1::Parameter::responsesDegenerateCasesThreshold
double responsesDegenerateCasesThreshold
Definition: logitboost_model.h:104
daal::algorithms::logitboost::interface1::Model::Model
Model()
Definition: logitboost_model.h:138
daal::algorithms::logitboost::interface1::Parameter::weightsDegenerateCasesThreshold
double weightsDegenerateCasesThreshold
Definition: logitboost_model.h:103
daal::algorithms::logitboost::interface1::Parameter::maxIterations
size_t maxIterations
Definition: logitboost_model.h:101
daal::algorithms::logitboost::interface1::Parameter::accuracyThreshold
double accuracyThreshold
Definition: logitboost_model.h:100
daal::algorithms::logitboost::interface1::Parameter
LogitBoost algorithm parameters.
Definition: logitboost_model.h:81
daal::algorithms::logitboost::interface1::Parameter::nClasses
size_t nClasses
Definition: logitboost_model.h:102
daal::algorithms::logitboost::interface1::Model
Model of the classifier trained by the logitboost::training::Batch algorithm.
Definition: logitboost_model.h:118