stripe / rainier

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

[0.3] param #404

Closed avi-stripe closed 4 years ago

avi-stripe commented 4 years ago

Brings back the param method on continuous distributions, using a new Parameter subtype of Variable that holds onto its own density function.

codecov-io commented 4 years ago

Codecov Report

Merging #404 into nuke-rv will decrease coverage by 0.16%. The diff coverage is 0%.

Impacted file tree graph

@@             Coverage Diff             @@
##           nuke-rv     #404      +/-   ##
===========================================
- Coverage    33.99%   33.83%   -0.17%     
===========================================
  Files           64       64              
  Lines         2456     2465       +9     
  Branches       146      139       -7     
===========================================
- Hits           835      834       -1     
- Misses        1621     1631      +10
Impacted Files Coverage Δ
...main/scala/com/stripe/rainier/core/Injection.scala 37.14% <0%> (-1.1%) :arrow_down:
...ain/scala/com/stripe/rainier/core/Continuous.scala 17.1% <0%> (-1.47%) :arrow_down:
...c/main/scala/com/stripe/rainier/compute/Real.scala 66.66% <0%> (-2.19%) :arrow_down:
...ain/scala/com/stripe/rainier/compute/RealOps.scala 77.96% <0%> (-0.85%) :arrow_down:

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 0650547...6a57625. Read the comment docs.