Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated docstring for find_constrained_prior #5964

Merged
merged 9 commits into from
Jul 13, 2022

Conversation

jlindbloom
Copy link
Contributor

What is this PR about?

Just updated the find_constrained_prior docstring during the data umbrella sprint (with @bdatko).

#DataUmbrellaPyMCSprint
Cc: @reshamas

Checklist

Major / Breaking Changes

Bugfixes / New features

Docs / Maintenance

  • Just updated the find_constrained_prior, following this guide.

References

Towards #5459

@cluhmann
Copy link
Member

cluhmann commented Jul 9, 2022

@AlexAndorra you originally wrote this, correct? Can you take a look? It's for #DataUmbrellaPyMCSprint

Co-authored-by: Michael Osthege <[email protected]>
@codecov
Copy link

codecov bot commented Jul 10, 2022

Codecov Report

Merging #5964 (32a72f0) into main (e96cf0a) will decrease coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #5964      +/-   ##
==========================================
- Coverage   89.41%   89.40%   -0.01%     
==========================================
  Files          73       73              
  Lines       13292    13248      -44     
==========================================
- Hits        11885    11845      -40     
+ Misses       1407     1403       -4     
Impacted Files Coverage Δ
pymc/func_utils.py 87.50% <ø> (ø)
pymc/distributions/continuous.py 97.89% <0.00%> (-0.10%) ⬇️
pymc/sampling_jax.py 96.93% <0.00%> (-0.02%) ⬇️
pymc/ode/ode.py 85.85% <0.00%> (ø)
pymc/ode/__init__.py 100.00% <0.00%> (ø)
pymc/distributions/discrete.py 99.21% <0.00%> (ø)
pymc/step_methods/hmc/base_hmc.py 90.55% <0.00%> (+0.78%) ⬆️
pymc/parallel_sampling.py 86.79% <0.00%> (+0.99%) ⬆️

@jlindbloom
Copy link
Contributor Author

Thanks @OriolAbril, this is useful. I will reference these formatting changes moving forward.

PyMC distribution you want to set a prior on.
Needs to have a ``logcdf`` method implemented in PyMC.
lower : float
Lower bound to get `mass` % of probability of `pm_dist`.
upper : float
Upper bound to get `mass` % of probability of `pm_dist`.
init_guess: Dict[str, float]
init_guess : dict of {str : float}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just need to trim this trailing whitespace.

@cluhmann
Copy link
Member

LGTM. Just need a core dev to approve!

@reshamas
Copy link
Contributor

@jlindbloom
PyMC office hours are on Thurs, Jul 14, in case there are any questions on this PR:
https://www.meetup.com/pymc-online-meetup/events/286864711/

@cluhmann
Copy link
Member

I can't quite see what the whitespace CI failure is about.

@aloctavodia aloctavodia merged commit 0380bf4 into pymc-devs:main Jul 13, 2022
@aloctavodia
Copy link
Member

thanks @jlindbloom!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants