stripe / rainier

Bayesian inference in Scala.
https://rainier.fit
Apache License 2.0
432 stars 51 forks source link

Model.optimize #416

Closed avibryant closed 4 years ago

avibryant commented 4 years ago

This is an optimize that is a close parallel to sample - instead of a Sample object it returns an Estimate object, which has a similar predict method to Sample but this one returns a single object instead of a List.

codecov-io commented 4 years ago

Codecov Report

Merging #416 into nuke-rv will increase coverage by 7.49%. The diff coverage is 0%.

Impacted file tree graph

@@             Coverage Diff             @@
##           nuke-rv     #416      +/-   ##
===========================================
+ Coverage    31.63%   39.13%   +7.49%     
===========================================
  Files           66       67       +1     
  Lines         2652     2655       +3     
  Branches       151      146       -5     
===========================================
+ Hits           839     1039     +200     
+ Misses        1813     1616     -197
Impacted Files Coverage Δ
...rc/main/scala/com/stripe/rainier/core/Sample.scala 0% <ø> (ø) :arrow_up:
.../main/scala/com/stripe/rainier/core/Estimate.scala 0% <0%> (ø)
...src/main/scala/com/stripe/rainier/core/Model.scala 37.93% <0%> (+37.93%) :arrow_up:
.../scala/com/stripe/rainier/compute/Translator.scala 95% <0%> (+1.25%) :arrow_up:
...in/scala/com/stripe/rainier/compute/Gradient.scala 93.44% <0%> (+1.63%) :arrow_up:
...ain/scala/com/stripe/rainier/compute/RealOps.scala 78.33% <0%> (+1.66%) :arrow_up:
...cala/com/stripe/rainier/compute/Coefficients.scala 95.16% <0%> (+4.83%) :arrow_up:
...c/main/scala/com/stripe/rainier/compute/Real.scala 74.6% <0%> (+7.93%) :arrow_up:
... and 11 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 7723fae...939debc. Read the comment docs.