-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Fix warnings from docstrings when building docs, remove t_stick_breaking #4283
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
@@ -24,7 +24,6 @@ implemented as ``pm.distributions.transforms.``\*X*. | |||
ordered | |||
log | |||
sum_to_1 | |||
t_stick_breaking |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed in #4129 , looks like it was never removed from here though
@@ -353,7 +352,7 @@ def sample( | |||
Notes | |||
----- | |||
Optional keyword arguments can be passed to ``sample`` to be delivered to the | |||
``step_method``s used during sampling. | |||
``step_method``\ s used during sampling. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
>>> import pymc3 as pm | ||
... n = 100 | ||
... h = 61 | ||
... alpha = 2 | ||
... beta = 2 | ||
In [1]: import pymc3 as pm | ||
...: n = 100 | ||
...: h = 61 | ||
...: alpha = 2 | ||
...: beta = 2 | ||
|
||
.. code:: ipython | ||
In [2]: with pm.Model() as model: # context management | ||
...: p = pm.Beta("p", alpha=alpha, beta=beta) | ||
...: y = pm.Binomial("y", n=n, p=p, observed=h) | ||
...: trace = pm.sample() | ||
|
||
>>> with pm.Model() as model: # context management | ||
... p = pm.Beta('p', alpha=alpha, beta=beta) | ||
... y = pm.Binomial('y', n=n, p=p, observed=h) | ||
... trace = pm.sample() | ||
>>> pm.summary(trace) | ||
mean sd mc_error hpd_2.5 hpd_97.5 | ||
p 0.604625 0.047086 0.00078 0.510498 0.694774 | ||
In [3]: pm.summary(trace, kind="stats") | ||
|
||
Out[3]: | ||
mean sd hdi_3% hdi_97% | ||
p 0.609 0.047 0.528 0.699 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codecov Report
@@ Coverage Diff @@
## master #4283 +/- ##
=======================================
Coverage 87.59% 87.59%
=======================================
Files 88 88
Lines 14312 14312
=======================================
Hits 12536 12536
Misses 1776 1776
|
xref #4276