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::UpdatePredicate Class Referenceabstract

An inner interface for a predicate that tests whether a Model needs to be updated based on the current training example. More...

#include <model.H>

Inheritance diagram for reranker::Model::UpdatePredicate:
reranker::FactoryConstructible reranker::PerceptronModel::DefaultUpdatePredicate

Public Member Functions

virtual bool NeedToUpdate (Model *model, CandidateSet &example)=0
 Returns whether the specified needs to be updated 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 for a predicate that tests whether a Model needs to be updated based on the current training example.

Typically, implementations of this interface will be inner classes of the concrete Model implementation to which they apply.

See Also
Model::NeedToUpdate
Model::Init
Model::InitHelper

Definition at line 243 of file model.H.

Member Function Documentation

virtual bool reranker::Model::UpdatePredicate::NeedToUpdate ( Model model,
CandidateSet example 
)
pure virtual

Returns whether the specified needs to be updated based on the specified training example.

The specified Model is non-const because it may be the case that its state needs modification based on the outcome of this predicate.

Parameters
modelthe model to test
examplethe current training example

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