OTB
9.0.0
Orfeo Toolbox
|
#include <otbSVMCrossValidationCostFunction.h>
Public Types | |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef Superclass::DerivativeType | DerivativeType |
typedef Superclass::MeasureType | MeasurementType |
typedef Superclass::ParametersType | ParametersType |
typedef Superclass::ParametersValueType | ParametersValueType |
typedef itk::SmartPointer< Self > | Pointer |
typedef SVMCrossValidationCostFunction | Self |
typedef itk::SingleValuedCostFunction | Superclass |
typedef SVMModelType::Pointer | SVMModelPointer |
typedef TModel | SVMModelType |
Public Member Functions | |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
Static Public Member Functions | |
static Pointer | New () |
SVMModelPointer | m_Model |
ParametersValueType | m_DerivativeStep |
virtual void | SetModel (SVMModelType *_arg) |
itkGetObjectMacro (Model, SVMModelType) | |
virtual void | SetDerivativeStep (ParametersValueType _arg) |
virtual ParametersValueType | GetDerivativeStep () |
MeasureType | GetValue (const ParametersType ¶meters) const override |
void | GetDerivative (const ParametersType ¶meters, DerivativeType &derivative) const override |
unsigned int | GetNumberOfParameters (void) const override |
SVMCrossValidationCostFunction () | |
~SVMCrossValidationCostFunction () override | |
void | UpdateParameters (const ParametersType ¶meters) const |
SVMCrossValidationCostFunction (const Self &)=delete | |
void | operator= (const Self &)=delete |
This function returns the cross validation accuracy of a SVM model.
It allows performing parameters selection to maximize the accuracy using ITK optimizers.
Given an input SVM model, the number of parameters depends on the type of kernel:
Please note that this function is only defined on .
The GetDerivative() uses the GetValue() function to compute the partial derivatives. as such, it can be quite intensive.
Definition at line 53 of file otbSVMCrossValidationCostFunction.h.
typedef itk::SmartPointer<const Self> otb::SVMCrossValidationCostFunction< TModel >::ConstPointer |
Definition at line 60 of file otbSVMCrossValidationCostFunction.h.
typedef Superclass::DerivativeType otb::SVMCrossValidationCostFunction< TModel >::DerivativeType |
Definition at line 73 of file otbSVMCrossValidationCostFunction.h.
typedef Superclass::MeasureType otb::SVMCrossValidationCostFunction< TModel >::MeasurementType |
Superclass typedefs
Definition at line 70 of file otbSVMCrossValidationCostFunction.h.
typedef Superclass::ParametersType otb::SVMCrossValidationCostFunction< TModel >::ParametersType |
Definition at line 71 of file otbSVMCrossValidationCostFunction.h.
typedef Superclass::ParametersValueType otb::SVMCrossValidationCostFunction< TModel >::ParametersValueType |
Definition at line 72 of file otbSVMCrossValidationCostFunction.h.
typedef itk::SmartPointer<Self> otb::SVMCrossValidationCostFunction< TModel >::Pointer |
Definition at line 59 of file otbSVMCrossValidationCostFunction.h.
typedef SVMCrossValidationCostFunction otb::SVMCrossValidationCostFunction< TModel >::Self |
Standard class typedefs.
Definition at line 57 of file otbSVMCrossValidationCostFunction.h.
typedef itk::SingleValuedCostFunction otb::SVMCrossValidationCostFunction< TModel >::Superclass |
Definition at line 58 of file otbSVMCrossValidationCostFunction.h.
typedef SVMModelType::Pointer otb::SVMCrossValidationCostFunction< TModel >::SVMModelPointer |
Definition at line 67 of file otbSVMCrossValidationCostFunction.h.
typedef TModel otb::SVMCrossValidationCostFunction< TModel >::SVMModelType |
Type definitions for the SVM Model.
Definition at line 63 of file otbSVMCrossValidationCostFunction.h.
|
protected |
Constructor.
Definition at line 30 of file otbSVMCrossValidationCostFunction.hxx.
|
overrideprotected |
Destructor.
Definition at line 34 of file otbSVMCrossValidationCostFunction.hxx.
|
privatedelete |
Pointer to the SVM model to optimize
virtual::itk::LightObject::Pointer otb::SVMCrossValidationCostFunction< TModel >::CreateAnother | ( | void | ) | const |
|
override |
Definition at line 59 of file otbSVMCrossValidationCostFunction.hxx.
References otbMsgDevMacro.
|
virtual |
Pointer to the SVM model to optimize
|
override |
Definition at line 85 of file otbSVMCrossValidationCostFunction.hxx.
|
override |
Definition at line 38 of file otbSVMCrossValidationCostFunction.hxx.
otb::SVMCrossValidationCostFunction< TModel >::itkGetObjectMacro | ( | Model | , |
SVMModelType | |||
) |
Pointer to the SVM model to optimize
|
static |
Method for creation through the object factory.
|
privatedelete |
Pointer to the SVM model to optimize
|
virtual |
Set/Get the derivative step
|
virtual |
Set the model
|
protected |
Update svm parameters struct according to the input parameters
Definition at line 95 of file otbSVMCrossValidationCostFunction.hxx.
|
private |
Step used to compute the derivatives
Definition at line 112 of file otbSVMCrossValidationCostFunction.h.
|
private |
Pointer to the SVM model to optimize
Definition at line 109 of file otbSVMCrossValidationCostFunction.h.