OTB
9.0.0
Orfeo Toolbox
|
#include <otbBoostMachineLearningModel.h>
Public Types | |
typedef Superclass::ConfidenceValueType | ConfidenceValueType |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef Superclass::InputListSampleType | InputListSampleType |
typedef Superclass::InputSampleType | InputSampleType |
typedef Superclass::InputValueType | InputValueType |
typedef itk::SmartPointer< Self > | Pointer |
typedef Superclass::ProbaSampleType | ProbaSampleType |
typedef BoostMachineLearningModel | Self |
typedef MachineLearningModel< TInputValue, TTargetValue > | Superclass |
typedef Superclass::TargetListSampleType | TargetListSampleType |
typedef Superclass::TargetSampleType | TargetSampleType |
typedef Superclass::TargetValueType | TargetValueType |
Public Types inherited from otb::MachineLearningModel< TInputValue, TTargetValue > | |
typedef MachineLearningModel | Self |
typedef itk::Object | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef MLMSampleTraits< TInputValue >::ValueType | InputValueType |
typedef MLMSampleTraits< TInputValue >::SampleType | InputSampleType |
typedef itk::Statistics::ListSample< InputSampleType > | InputListSampleType |
typedef MLMTargetTraits< TTargetValue >::ValueType | TargetValueType |
typedef MLMTargetTraits< TTargetValue >::SampleType | TargetSampleType |
typedef itk::Statistics::ListSample< TargetSampleType > | TargetListSampleType |
typedef MLMTargetTraits< double >::ValueType | ConfidenceValueType |
typedef MLMTargetTraits< double >::SampleType | ConfidenceSampleType |
typedef itk::Statistics::ListSample< ConfidenceSampleType > | ConfidenceListSampleType |
typedef itk::VariableLengthVector< double > | ProbaSampleType |
typedef itk::Statistics::ListSample< ProbaSampleType > | ProbaListSampleType |
static Pointer | New () |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
virtual const char * | GetNameOfClass () const |
virtual int | GetBoostType () |
virtual void | SetBoostType (int _arg) |
virtual int | GetWeakCount () |
virtual void | SetWeakCount (int _arg) |
virtual double | GetWeightTrimRate () |
virtual void | SetWeightTrimRate (double _arg) |
virtual int | GetMaxDepth () |
virtual void | SetMaxDepth (int _arg) |
void | Train () override |
void | Save (const std::string &filename, const std::string &name="") override |
void | Load (const std::string &filename, const std::string &name="") override |
Classification model file compatibility tests | |
cv::Ptr< cv::ml::Boost > | m_BoostModel |
int | m_BoostType |
int | m_WeakCount |
double | m_WeightTrimRate |
int | m_MaxDepth |
bool | CanReadFile (const std::string &) override |
bool | CanWriteFile (const std::string &) override |
BoostMachineLearningModel () | |
~BoostMachineLearningModel () override=default | |
TargetSampleType | DoPredict (const InputSampleType &input, ConfidenceValueType *quality=nullptr, ProbaSampleType *proba=nullptr) const override |
void | PrintSelf (std::ostream &os, itk::Indent indent) const override |
BoostMachineLearningModel (const Self &)=delete | |
void | operator= (const Self &)=delete |
Definition at line 35 of file otbBoostMachineLearningModel.h.
typedef Superclass::ConfidenceValueType otb::BoostMachineLearningModel< TInputValue, TTargetValue >::ConfidenceValueType |
Definition at line 50 of file otbBoostMachineLearningModel.h.
typedef itk::SmartPointer<const Self> otb::BoostMachineLearningModel< TInputValue, TTargetValue >::ConstPointer |
Definition at line 42 of file otbBoostMachineLearningModel.h.
typedef Superclass::InputListSampleType otb::BoostMachineLearningModel< TInputValue, TTargetValue >::InputListSampleType |
Definition at line 46 of file otbBoostMachineLearningModel.h.
typedef Superclass::InputSampleType otb::BoostMachineLearningModel< TInputValue, TTargetValue >::InputSampleType |
Definition at line 45 of file otbBoostMachineLearningModel.h.
typedef Superclass::InputValueType otb::BoostMachineLearningModel< TInputValue, TTargetValue >::InputValueType |
Definition at line 44 of file otbBoostMachineLearningModel.h.
typedef itk::SmartPointer<Self> otb::BoostMachineLearningModel< TInputValue, TTargetValue >::Pointer |
Definition at line 41 of file otbBoostMachineLearningModel.h.
typedef Superclass::ProbaSampleType otb::BoostMachineLearningModel< TInputValue, TTargetValue >::ProbaSampleType |
Definition at line 51 of file otbBoostMachineLearningModel.h.
typedef BoostMachineLearningModel otb::BoostMachineLearningModel< TInputValue, TTargetValue >::Self |
Standard class typedefs.
Definition at line 39 of file otbBoostMachineLearningModel.h.
typedef MachineLearningModel<TInputValue, TTargetValue> otb::BoostMachineLearningModel< TInputValue, TTargetValue >::Superclass |
Definition at line 40 of file otbBoostMachineLearningModel.h.
typedef Superclass::TargetListSampleType otb::BoostMachineLearningModel< TInputValue, TTargetValue >::TargetListSampleType |
Definition at line 49 of file otbBoostMachineLearningModel.h.
typedef Superclass::TargetSampleType otb::BoostMachineLearningModel< TInputValue, TTargetValue >::TargetSampleType |
Definition at line 48 of file otbBoostMachineLearningModel.h.
typedef Superclass::TargetValueType otb::BoostMachineLearningModel< TInputValue, TTargetValue >::TargetValueType |
Definition at line 47 of file otbBoostMachineLearningModel.h.
|
protected |
Constructor
Definition at line 34 of file otbBoostMachineLearningModel.hxx.
References otb::MachineLearningModel< TInputValue, TTargetValue >::m_ConfidenceIndex.
|
overrideprotecteddefault |
Destructor
|
privatedelete |
Is the input model file readable and compatible with the corresponding classifier ?
|
overridevirtual |
Is the input model file readable and compatible with the corresponding classifier ?
Implements otb::MachineLearningModel< TInputValue, TTargetValue >.
Definition at line 112 of file otbBoostMachineLearningModel.hxx.
References CV_TYPE_NAME_ML_BOOSTING.
|
overridevirtual |
Is the input model file writable and compatible with the corresponding classifier ?
Implements otb::MachineLearningModel< TInputValue, TTargetValue >.
Definition at line 140 of file otbBoostMachineLearningModel.hxx.
virtual::itk::LightObject::Pointer otb::BoostMachineLearningModel< TInputValue, TTargetValue >::CreateAnother | ( | void | ) | const |
Run-time type information (and related methods).
|
overrideprotected |
Predict values using the model
Definition at line 71 of file otbBoostMachineLearningModel.hxx.
|
virtual |
Setters/Getters to the Boost type It can be CvBoost::DISCRETE, CvBoost::REAL, CvBoost::LOGIT, CvBoost::GENTLE Default is CvBoost::REAL.
|
virtual |
Setters/Getters to the maximum depth of the tree. Default is 1
|
virtual |
Run-time type information (and related methods).
|
virtual |
Setters/Getters to the number of weak classifiers. Default is 100.
|
virtual |
Setters/Getters to the threshold WeightTrimRate. A threshold between 0 and 1 used to save computational time. Samples with summary weight do not participate in the next iteration of training. Set this parameter to 0 to turn off this functionality. Default is 0.95
|
overridevirtual |
Load the model from file
Implements otb::MachineLearningModel< TInputValue, TTargetValue >.
Definition at line 105 of file otbBoostMachineLearningModel.hxx.
|
static |
Run-time type information (and related methods).
|
privatedelete |
Is the input model file readable and compatible with the corresponding classifier ?
|
overrideprotected |
PrintSelf method
Definition at line 146 of file otbBoostMachineLearningModel.hxx.
|
overridevirtual |
Save the model to file
Implements otb::MachineLearningModel< TInputValue, TTargetValue >.
Definition at line 95 of file otbBoostMachineLearningModel.hxx.
|
virtual |
Run-time type information (and related methods).
|
virtual |
Run-time type information (and related methods).
|
virtual |
Run-time type information (and related methods).
|
virtual |
Run-time type information (and related methods).
|
overridevirtual |
Train the machine learning model
Implements otb::MachineLearningModel< TInputValue, TTargetValue >.
Definition at line 46 of file otbBoostMachineLearningModel.hxx.
References CV_VAR_CATEGORICAL, and CV_VAR_NUMERICAL.
|
private |
Is the input model file readable and compatible with the corresponding classifier ?
Definition at line 129 of file otbBoostMachineLearningModel.h.
|
private |
Is the input model file readable and compatible with the corresponding classifier ?
Definition at line 131 of file otbBoostMachineLearningModel.h.
|
private |
Is the input model file readable and compatible with the corresponding classifier ?
Definition at line 134 of file otbBoostMachineLearningModel.h.
|
private |
Is the input model file readable and compatible with the corresponding classifier ?
Definition at line 132 of file otbBoostMachineLearningModel.h.
|
private |
Is the input model file readable and compatible with the corresponding classifier ?
Definition at line 133 of file otbBoostMachineLearningModel.h.