Cambridge SMT System
Optimize.cpp File Reference
#include <main.custom_assert.hpp>
#include <main.logger.hpp>
#include "Optimize.h"
#include <ctime>
#include <boost/random/uniform_on_sphere.hpp>
#include <boost/random/variate_generator.hpp>
Include dependency graph for Optimize.cpp:

Go to the source code of this file.

Typedefs

typedef unsigned int Sid
 
typedef std::vector< SidSentenceList
 

Functions

 DEFINE_int32 (threads, 1,"Number of threads used for line search")
 
 DEFINE_int64 (seed, 0,"Random direction seed")
 
unsigned int GetSeed ()
 
PARAMS ComputeFinalPoint (const PARAMS &lambda, const PARAMS &direction, const double gamma)
 
PARAMS VectorScale (const PARAMS &vw, const unsigned int k)
 
int GetNoOfThreads ()
 

Variables

MERT mert
 

Typedef Documentation

typedef std::vector<Sid> SentenceList

Definition at line 21 of file Optimize.cpp.

typedef unsigned int Sid

Definition at line 19 of file Optimize.cpp.

Function Documentation

PARAMS ComputeFinalPoint ( const PARAMS lambda,
const PARAMS direction,
const double  gamma 
)

Definition at line 54 of file Optimize.cpp.

Here is the caller graph for this function:

DEFINE_int32 ( threads  ,
,
"Number of threads used for line search"   
)
DEFINE_int64 ( seed  ,
,
"Random direction seed"   
)
int GetNoOfThreads ( )

Definition at line 195 of file Optimize.cpp.

Here is the caller graph for this function:

unsigned int GetSeed ( )

Definition at line 29 of file Optimize.cpp.

Here is the caller graph for this function:

PARAMS VectorScale ( const PARAMS vw,
const unsigned int  k 
)

Definition at line 66 of file Optimize.cpp.

Here is the caller graph for this function:

Variable Documentation

MERT mert

Definition at line 23 of file Optimize.cpp.