21 #ifndef otbBoostMachineLearningModel_h
22 #define otbBoostMachineLearningModel_h
26 #include "itkLightObject.h"
27 #include "itkFixedArray.h"
34 template <
class TInputValue,
class TTargetValue>
62 itkGetMacro(BoostType,
int);
63 itkSetMacro(BoostType,
int);
70 itkGetMacro(WeakCount,
int);
71 itkSetMacro(WeakCount,
int);
81 itkGetMacro(WeightTrimRate,
double);
82 itkSetMacro(WeightTrimRate,
double);
89 itkGetMacro(MaxDepth,
int);
90 itkSetMacro(MaxDepth,
int);
94 void Train()
override;
97 void Save(
const std::string& filename,
const std::string& name =
"")
override;
100 void Load(
const std::string& filename,
const std::string& name =
"")
override;
106 bool CanReadFile(
const std::string&)
override;
109 bool CanWriteFile(
const std::string&)
override;
123 void PrintSelf(std::ostream& os, itk::Indent indent)
const override;
138 #ifndef OTB_MANUAL_INSTANTIATION
Superclass::ConfidenceValueType ConfidenceValueType
Superclass::TargetValueType TargetValueType
BoostMachineLearningModel(const Self &)=delete
BoostMachineLearningModel Self
itk::SmartPointer< const Self > ConstPointer
Superclass::InputValueType InputValueType
cv::Ptr< cv::ml::Boost > m_BoostModel
Superclass::TargetListSampleType TargetListSampleType
MachineLearningModel< TInputValue, TTargetValue > Superclass
Superclass::ProbaSampleType ProbaSampleType
Superclass::TargetSampleType TargetSampleType
Superclass::InputListSampleType InputListSampleType
itk::SmartPointer< Self > Pointer
Superclass::InputSampleType InputSampleType
void operator=(const Self &)=delete
~BoostMachineLearningModel() override=default
MachineLearningModel is the base class for all classifier objects (SVM, KNN, Random Forests,...
MLMTargetTraits< TConfidenceValue >::ValueType ConfidenceValueType
itk::VariableLengthVector< double > ProbaSampleType
MLMSampleTraits< TInputValue >::SampleType InputSampleType
MLMTargetTraits< TTargetValue >::SampleType TargetSampleType
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.