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::RandomPairCandidateSetScorer Class Reference

This candidate set scorer picks two candidates at random from the set, scores them and then identifies which has the higher score and the lowest loss, effectively meaning that training proceeds as if those were the only two candidates. More...

#include <model.H>

Inheritance diagram for reranker::RandomPairCandidateSetScorer:
reranker::CandidateSet::Scorer reranker::FactoryConstructible

Public Member Functions

virtual void Init (const Environment *env, const string &arg)
 Initializes the random seed using srand and the current time available by calling time(NULL). More...
 
virtual void Score (Model *model, CandidateSet &candidates, bool training)
 Picks two candidates at random from the set, scores them and then identifies which has the higher score and the lowest loss, effectively meaning that training proceeds as if those were the only two candidates. More...
 
- Public Member Functions inherited from reranker::FactoryConstructible
virtual ~FactoryConstructible ()
 
virtual void RegisterInitializers (Initializers &initializers)
 

Detailed Description

This candidate set scorer picks two candidates at random from the set, scores them and then identifies which has the higher score and the lowest loss, effectively meaning that training proceeds as if those were the only two candidates.

Definition at line 119 of file model.H.

Member Function Documentation

void reranker::RandomPairCandidateSetScorer::Init ( const Environment env,
const string &  arg 
)
virtual

Initializes the random seed using srand and the current time available by calling time(NULL).

Reimplemented from reranker::FactoryConstructible.

Definition at line 89 of file model.C.

void reranker::RandomPairCandidateSetScorer::Score ( Model model,
CandidateSet candidates,
bool  training 
)
virtual

Picks two candidates at random from the set, scores them and then identifies which has the higher score and the lowest loss, effectively meaning that training proceeds as if those were the only two candidates.

Implements reranker::CandidateSet::Scorer.

Definition at line 116 of file model.C.


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