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>
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, LabelType > | DatasetType |
Optimizes the parameters of a sigmoid to fit a validation dataset via backpropagation on the negative log-likelihood.
Definition at line 54 of file SigmoidFit.h.
SHARK_EXPORT_SYMBOL shark::SigmoidFitRpropNLL::SigmoidFitRpropNLL | ( | unsigned int | iters = 100 | ) |
|
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().
SHARK_EXPORT_SYMBOL void shark::SigmoidFitRpropNLL::train | ( | SigmoidModel & | model, |
LabeledData< RealVector, unsigned int > const & | dataset | ||
) |