Reranker Framework (ReFr)
Reranking framework for structure prediction and discriminative language modeling
|
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>
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) |
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.
|
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.
model | the model to test |
example | the current training example |