Skip to content

Commit

Permalink
Maybe loosening convergence will stop this test form occasionally blo…
Browse files Browse the repository at this point in the history
…cking?
  • Loading branch information
manning committed Jul 4, 2022
1 parent c9a5fb2 commit 4b129c0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public void testOptimizeLogLikelihood(AbstractBatchOptimizer optimizer,
@ForAll(sampleSize = 2) @From(LogLikelihoodFunctionTest.WeightsGenerator.class) ConcatVector initialWeights,
@ForAll(sampleSize = 2) @InRange(minDouble = 0.0, maxDouble = 5.0) double l2regularization) {
AbstractDifferentiableFunction<GraphicalModel> ll = new LogLikelihoodDifferentiableFunction();
ConcatVector finalWeights = optimizer.optimize(dataset, ll, initialWeights, l2regularization, 1.0e-6, true);
ConcatVector finalWeights = optimizer.optimize(dataset, ll, initialWeights, l2regularization, 1.0e-5, true);
System.err.println("Finished optimizing");

double logLikelihood = getValueSum(dataset, finalWeights, ll, l2regularization);
Expand Down

0 comments on commit 4b129c0

Please sign in to comment.