Cambridge SMT System
OptimizerImpl< Algo, ErrorSurface > Class Template Reference

#include <Optimize.h>

Inheritance diagram for OptimizerImpl< Algo, ErrorSurface >:
Collaboration diagram for OptimizerImpl< Algo, ErrorSurface >:

Public Member Functions

virtual void LoadRefData (std::vector< std::string > refs)
 
virtual void InitTuneSet (bool useCache)
 
virtual ~OptimizerImpl ()
 
virtual std::string ComputeError (const PARAMS &lambda)
 
- Public Member Functions inherited from Optimizer
virtual const pair< PARAMS, double > operator() (PARAMS &)=0
 
virtual void Init (int)=0
 
virtual ~Optimizer ()
 

Protected Types

typedef ErrorSurface::ErrorStats ErrorStats
 
typedef ErrorStats::Error Error
 
typedef pair< PARAMS, ErrorOptimizationResult
 

Protected Member Functions

OptimizationResult MakeOptimizationResult (ErrorSurface &surface, const PARAMS &direction, const OptimizationResult &prev)
 
void LineOptimize (const PARAMS &lambda, const PARAMS &direction, ErrorSurface &surface, const std::vector< Sid > &lattices)
 
unsigned int GetBestOptimizationDirection (const std::vector< OptimizationResult > &results)
 
void LogLineOptimization (const OptimizationResult &start, const OptimizationResult &tuned, const PARAMS &direction, const double gamma)
 

Protected Attributes

ErrorSurface::RefData refData
 
TuneSet lats
 

Detailed Description

template<class Algo, class ErrorSurface>
class OptimizerImpl< Algo, ErrorSurface >

Definition at line 149 of file Optimize.h.

Member Typedef Documentation

template<class Algo, class ErrorSurface>
typedef ErrorStats::Error OptimizerImpl< Algo, ErrorSurface >::Error
protected

Definition at line 153 of file Optimize.h.

template<class Algo, class ErrorSurface>
typedef ErrorSurface::ErrorStats OptimizerImpl< Algo, ErrorSurface >::ErrorStats
protected

Definition at line 152 of file Optimize.h.

template<class Algo, class ErrorSurface>
typedef pair<PARAMS, Error> OptimizerImpl< Algo, ErrorSurface >::OptimizationResult
protected

Definition at line 154 of file Optimize.h.

Constructor & Destructor Documentation

template<class Algo, class ErrorSurface>
virtual OptimizerImpl< Algo, ErrorSurface >::~OptimizerImpl ( )
inlinevirtual

Definition at line 237 of file Optimize.h.

Member Function Documentation

template<class Algo, class ErrorSurface>
virtual std::string OptimizerImpl< Algo, ErrorSurface >::ComputeError ( const PARAMS lambda)
inlinevirtual

Implements Optimizer.

Definition at line 240 of file Optimize.h.

Here is the call graph for this function:

template<class Algo, class ErrorSurface>
unsigned int OptimizerImpl< Algo, ErrorSurface >::GetBestOptimizationDirection ( const std::vector< OptimizationResult > &  results)
inlineprotected

Definition at line 179 of file Optimize.h.

template<class Algo, class ErrorSurface>
virtual void OptimizerImpl< Algo, ErrorSurface >::InitTuneSet ( bool  useCache)
inlinevirtual

Implements Optimizer.

Definition at line 233 of file Optimize.h.

Here is the call graph for this function:

template<class Algo, class ErrorSurface>
void OptimizerImpl< Algo, ErrorSurface >::LineOptimize ( const PARAMS lambda,
const PARAMS direction,
ErrorSurface surface,
const std::vector< Sid > &  lattices 
)
inlineprotected

Definition at line 167 of file Optimize.h.

Here is the call graph for this function:

template<class Algo, class ErrorSurface>
virtual void OptimizerImpl< Algo, ErrorSurface >::LoadRefData ( std::vector< std::string >  refs)
inlinevirtual

Implements Optimizer.

Definition at line 229 of file Optimize.h.

template<class Algo, class ErrorSurface>
void OptimizerImpl< Algo, ErrorSurface >::LogLineOptimization ( const OptimizationResult start,
const OptimizationResult tuned,
const PARAMS direction,
const double  gamma 
)
inlineprotected

Definition at line 194 of file Optimize.h.

template<class Algo, class ErrorSurface>
OptimizationResult OptimizerImpl< Algo, ErrorSurface >::MakeOptimizationResult ( ErrorSurface surface,
const PARAMS direction,
const OptimizationResult prev 
)
inlineprotected

Definition at line 156 of file Optimize.h.

Here is the call graph for this function:

Member Data Documentation

template<class Algo, class ErrorSurface>
TuneSet OptimizerImpl< Algo, ErrorSurface >::lats
protected

Definition at line 225 of file Optimize.h.

template<class Algo, class ErrorSurface>
ErrorSurface::RefData OptimizerImpl< Algo, ErrorSurface >::refData
protected

Definition at line 224 of file Optimize.h.


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