Template Class Validator

Inheritance Relationships

Base Type

Class Documentation

template<class DataSet, class BuilderType>
class Validator : public marian::ValidatorBase

Public Types

typedef DataSet::batch_ptr BatchPtr

Public Functions

virtual ~Validator()
Validator(std::vector<Ptr<Vocab>> vocabs, Ptr<Options> options, bool lowerIsBetter = true)
virtual float validate(const std::vector<Ptr<ExpressionGraph>> &graphs, Ptr<const TrainingState>)

Protected Functions

void createBatchGenerator(bool)
virtual float validateBG(const std::vector<Ptr<ExpressionGraph>>&) = 0
void updateStalled(const std::vector<Ptr<ExpressionGraph>> &graphs, float val)
virtual void keepBest(const std::vector<Ptr<ExpressionGraph>> &graphs)

Protected Attributes

std::vector<Ptr<Vocab>> vocabs_
Ptr<Options> options_
Ptr<BuilderType> builder_
Ptr<data::BatchGenerator<DataSet>> batchGenerator_