shark::SigmoidFitPlatt Class Reference

Optimizes the parameters of a sigmoid to fit a validation dataset via Platt's method. More...

#include <shark/Algorithms/Trainers/SigmoidFit.h>

+ Inheritance diagram for shark::SigmoidFitPlatt:

Public Member Functions

SHARK_EXPORT_SYMBOL void train (SigmoidModel &model, LabeledData< RealVector, unsigned int > const &dataset)
 
std::string name () const
 From INameable: return the class name. More...
 
- Public Member Functions inherited from shark::AbstractTrainer< SigmoidModel, unsigned int >
virtual void train (ModelType &model, DatasetType const &dataset)=0
 Core of the Trainer interface. More...
 
- Public Member Functions inherited from shark::INameable
virtual ~INameable ()
 
- Public Member Functions inherited from shark::ISerializable
virtual ~ISerializable ()
 Virtual d'tor. More...
 
virtual void read (InArchive &archive)
 Read the component from the supplied archive. More...
 
virtual void write (OutArchive &archive) const
 Write the component to the supplied archive. More...
 
void load (InArchive &archive, unsigned int version)
 Versioned loading of components, calls read(...). More...
 
void save (OutArchive &archive, unsigned int version) const
 Versioned storing of components, calls write(...). More...
 
 BOOST_SERIALIZATION_SPLIT_MEMBER ()
 

Additional Inherited Members

- Public Types inherited from shark::AbstractTrainer< SigmoidModel, unsigned int >
typedef SigmoidModel ModelType
 
typedef ModelType::InputType InputType
 
typedef unsigned int LabelType
 
typedef LabeledData< InputType, LabelTypeDatasetType
 

Detailed Description

Optimizes the parameters of a sigmoid to fit a validation dataset via Platt's method.

The SigmoidFitPlatt class implements a non-iterative optimizer, despite the optimization task and optimizer being iterative in nature. The algorithm corresponds to the one suggested by John Platt in 1999, and is almost literally taken from
Probabilistic Outputs for Support Vector Machines and Comparisons to Regularized Likelihood Methods, Advances in Large Margin Classifiers, pp. 61-74, MIT Press, (1999).
The full paper can be downloaded from
http://www.research.microsoft.com/~jplatt
— pseudo-code is given in the paper.

Definition at line 85 of file SigmoidFit.h.

Member Function Documentation

◆ name()

std::string shark::SigmoidFitPlatt::name ( ) const
inlinevirtual

From INameable: return the class name.

Reimplemented from shark::INameable.

Definition at line 91 of file SigmoidFit.h.

◆ train()

SHARK_EXPORT_SYMBOL void shark::SigmoidFitPlatt::train ( SigmoidModel model,
LabeledData< RealVector, unsigned int > const &  dataset 
)

The documentation for this class was generated from the following file: