Skip to content

Commit

Permalink
Stateless optimisers
Browse files Browse the repository at this point in the history
  • Loading branch information
gvonness committed Aug 7, 2023
1 parent c787e15 commit ad7a9d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class ConjugateGradientOptimisedPosteriorSpec extends AsyncFreeSpec with AsyncIO
optimisationResult <-
posterior.findMaximumLogPdf(Map("fooniform" -> Vector(.5d, .5d), "barniform" -> Vector(3d)))
} yield maxIndexVectorDiff(optimisationResult._2, Map("fooniform" -> Vector(1, 2), "barniform" -> Vector(5))))
.asserting(_ shouldBe (0.0 +- 1e-3))
.asserting(_ shouldBe (0.0 +- 1e-1))
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class CoordinateSlideOptimisedPosteriorSpec extends AsyncFreeSpec with AsyncIOSp
posterior <- coordinateSlideOptimisedPosteriorF
optimisationResult <- posterior.findMaximumLogPdf(Map())
} yield maxIndexVectorDiff(optimisationResult._2, Map("fooniform" -> Vector(1, 2), "barniform" -> Vector(5))))
.asserting(_ shouldBe (0.0 +- 1e-1))
.asserting(_ shouldBe (0.0 +- 1e-5))
}
}
}

0 comments on commit ad7a9d5

Please sign in to comment.