From d2a54056e2acbdfd48e7c088fe25cc24cf280575 Mon Sep 17 00:00:00 2001 From: "trevor.cohn" Date: Wed, 14 Jul 2010 15:15:35 +0000 Subject: Made PhraseObjective thread safe git-svn-id: https://ws10smt.googlecode.com/svn/trunk@248 ec762483-ff6d-05da-a07a-a48fb63a330f --- .../prjava/src/phrase/PhraseContextObjective.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gi/posterior-regularisation/prjava/src/phrase/PhraseContextObjective.java') diff --git a/gi/posterior-regularisation/prjava/src/phrase/PhraseContextObjective.java b/gi/posterior-regularisation/prjava/src/phrase/PhraseContextObjective.java index 7e6c7f60..06a9f8cb 100644 --- a/gi/posterior-regularisation/prjava/src/phrase/PhraseContextObjective.java +++ b/gi/posterior-regularisation/prjava/src/phrase/PhraseContextObjective.java @@ -318,7 +318,7 @@ public class PhraseContextObjective extends ProjectedObjective return q[edgeIndex]; } - public double[] optimizeWithProjectedGradientDescent() + public boolean optimizeWithProjectedGradientDescent() { projectionTime = 0; actualProjectionTime = 0; @@ -354,7 +354,7 @@ public class PhraseContextObjective extends ProjectedObjective System.out.println(" and " + total + " ms: projection " + projectionTime + " actual " + actualProjectionTime + " objective " + objectiveTime); - return parameters; + return success; } double loglikelihood() -- cgit v1.2.3