MosesTuning::RandomOptimizer Class Reference

#include <Optimizer.h>

Inheritance diagram for MosesTuning::RandomOptimizer:

Inheritance graph
Collaboration diagram for MosesTuning::RandomOptimizer:

Collaboration graph

List of all members.

Public Member Functions

 RandomOptimizer (unsigned dim, const std::vector< unsigned > &i2O, const std::vector< bool > &positive, const std::vector< parameter_t > &start, unsigned int nrandom)
virtual statscore_t TrueRun (Point &) const

Detailed Description

Dumb baseline optimizer: just picks a random point and quits.

Definition at line 111 of file Optimizer.h.

Constructor & Destructor Documentation

MosesTuning::RandomOptimizer::RandomOptimizer ( unsigned  dim,
const std::vector< unsigned > &  i2O,
const std::vector< bool > &  positive,
const std::vector< parameter_t > &  start,
unsigned int  nrandom 
) [inline]

Definition at line 114 of file Optimizer.h.

Member Function Documentation

statscore_t MosesTuning::RandomOptimizer::TrueRun ( Point  )  const [virtual]

Main function that performs an optimization.

Implements MosesTuning::Optimizer.

Definition at line 480 of file Optimizer.cpp.

References MosesTuning::Optimizer::GetStatScore(), MosesTuning::Point::Randomize(), and MosesTuning::Point::SetScore().

Here is the call graph for this function:

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

Generated on Thu Jul 6 00:34:18 2017 for Moses by  doxygen 1.5.9