diff options
author | jfouet <jfouet@1f5c12ca-751b-0410-a591-d2e778427230> | 2008-05-14 18:25:07 +0400 |
---|---|---|
committer | jfouet <jfouet@1f5c12ca-751b-0410-a591-d2e778427230> | 2008-05-14 18:25:07 +0400 |
commit | cb5305ab4633bb47f962c01babf61c060f24b902 (patch) | |
tree | f503f8af9f4f209925a38c6324c19a462476ff44 /mert/Optimizer.h | |
parent | 9202738527586ef1e5f603998b4537912b2788ac (diff) |
implementation of LineOptimizer
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@1659 1f5c12ca-751b-0410-a591-d2e778427230
Diffstat (limited to 'mert/Optimizer.h')
-rw-r--r-- | mert/Optimizer.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mert/Optimizer.h b/mert/Optimizer.h index 874c1c080..4a18fdae6 100644 --- a/mert/Optimizer.h +++ b/mert/Optimizer.h @@ -36,11 +36,11 @@ class Optimizer{ /**given a set of lambdas, get the nbest for each sentence*/ vector<unsigned> Get1bests(const Point& param); /**given a set of nbests, get the Statistical score*/ - statscore Getstatscore(vector<unsigned> nbests){scorer->score(nbests);}; + statscore GetStatScore(vector<unsigned> nbests){scorer->score(nbests);}; /**given a set of lambdas, get the total statistical score*/ - statscore Getstatscore(const Point& param){return Getstatscore(Get1bests(param));}; + statscore GetStatScore(const Point& param){return GetStatScore(Get1bests(param));}; statscore LineOptimize(const Point& start,Point direction,Point& best);//Get the optimal Lambda and the best score in a particular direction from a given Point -} +}; using namespace std; /**default basic optimizer*/ @@ -49,7 +49,7 @@ private: float eps; public: SimpleOptimizer(unsigned dim,float _eps):Optimizer(dim),eps(_eps){}; Point run(const Point& init); -} +}; #endif |