shark::SigmoidFitRpropNLL Class Reference

Optimizes the parameters of a sigmoid to fit a validation dataset via backpropagation on the negative log-likelihood. More...

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

+ Inheritance diagram for shark::SigmoidFitRpropNLL:

Public Member Functions

SHARK_EXPORT_SYMBOL SigmoidFitRpropNLL (unsigned int iters=100)
 
std::string name () const
 From INameable: return the class name. More...
 
SHARK_EXPORT_SYMBOL void train (SigmoidModel &model, LabeledData< RealVector, unsigned int > const &dataset)
 
- 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 backpropagation on the negative log-likelihood.

The SigmoidFitPlatt class implements a non-iterative optimizer, despite the optimization task and optimizer being iterative in nature. This class simply relies on a user-definable number of Rprop optimization steps to adapt the sigmoid parameters.

Definition at line 54 of file SigmoidFit.h.

Constructor & Destructor Documentation

◆ SigmoidFitRpropNLL()

SHARK_EXPORT_SYMBOL shark::SigmoidFitRpropNLL::SigmoidFitRpropNLL ( unsigned int  iters = 100)

Member Function Documentation

◆ name()

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

From INameable: return the class name.

Reimplemented from shark::INameable.

Definition at line 60 of file SigmoidFit.h.

References SHARK_EXPORT_SYMBOL, and train().

◆ train()

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

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