Reranker Framework (ReFr)
Reranking framework for structure prediction and discriminative language modeling
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
reranker::Model::Updater Class Referenceabstract

An inner interface specifying an update function for a model. More...

#include <model.H>

Inheritance diagram for reranker::Model::Updater:
reranker::FactoryConstructible reranker::PerceptronModel::DefaultUpdater

Public Member Functions

virtual void Update (Model *model, CandidateSet &example)=0
 Updates this model based on the specified training example. More...
 
- Public Member Functions inherited from reranker::FactoryConstructible
virtual ~FactoryConstructible ()
 
virtual void RegisterInitializers (Initializers &initializers)
 
virtual void Init (const Environment *env, const string &arg)
 

Detailed Description

An inner interface specifying an update function for a model.

The update function typically goes hand in hand with the type of model. For example, perceptron-style models get updated by adding to the current weight vector a possibly scaled version of the “gold” candidate hypothesis and subtracting a possibly scaled version of the candidate hypothesis that scored highest under the current model. Typically, implementations of this interface will be inner classes of the concrete Model implementation to which they apply.

See Also
Model::Update
Model::Init
Model::InitHelper

Definition at line 268 of file model.H.

Member Function Documentation

virtual void reranker::Model::Updater::Update ( Model model,
CandidateSet example 
)
pure virtual

Updates this model based on the specified training example.

Parameters
modelthe model to update
examplethe current training example that caused the model to need updating

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