From f7a25d5b117749bd688eb4e6118da420a86f3e17 Mon Sep 17 00:00:00 2001 From: "trevor.cohn" Date: Thu, 5 Aug 2010 13:56:29 +0000 Subject: Debugged PR-phrase-context and tuned projected gradient to BTEC git-svn-id: https://ws10smt.googlecode.com/svn/trunk@481 ec762483-ff6d-05da-a07a-a48fb63a330f --- .../prjava/src/phrase/PhraseObjective.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'gi/posterior-regularisation/prjava/src/phrase/PhraseObjective.java') diff --git a/gi/posterior-regularisation/prjava/src/phrase/PhraseObjective.java b/gi/posterior-regularisation/prjava/src/phrase/PhraseObjective.java index 5efe778a..ac73a075 100644 --- a/gi/posterior-regularisation/prjava/src/phrase/PhraseObjective.java +++ b/gi/posterior-regularisation/prjava/src/phrase/PhraseObjective.java @@ -21,11 +21,8 @@ public class PhraseObjective extends ProjectedObjective { static final double GRAD_DIFF = 0.00002; static double INIT_STEP_SIZE = 300; - static double VAL_DIFF = 1e-6; // FIXME needs to be tuned - and this might be too weak + static double VAL_DIFF = 1e-8; // tuned to BTEC subsample static int ITERATIONS = 100; - //private double c1=0.0001; // wolf stuff - //private double c2=0.9; - //private static double lambda[][]; private PhraseCluster c; /**@brief @@ -181,13 +178,13 @@ public class PhraseObjective extends ProjectedObjective optimizer.setMaxIterations(ITERATIONS); updateFunction(); boolean success = optimizer.optimize(this,stats,compositeStop); -// System.out.println("Ended optimzation Projected Gradient Descent\n" + stats.prettyPrint(1)); + //System.out.println("Ended optimzation Projected Gradient Descent\n" + stats.prettyPrint(1)); //if(succed){ //System.out.println("Ended optimization in " + optimizer.getCurrentIteration()); //}else{ // System.out.println("Failed to optimize"); //} - // ps.println(Arrays.toString(parameters)); + //System.out.println(Arrays.toString(parameters)); // for(int edge=0;edge