Skip to content

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

Merged
merged 1 commit into from
Dec 3, 2020

Conversation

MarcoGorelli
Copy link
Contributor

xref #4276

@@ -24,7 +24,6 @@ implemented as ``pm.distributions.transforms.``\*X*.
ordered
log
sum_to_1
t_stick_breaking
Copy link
Contributor Author

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.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

On master:

image

This branch:

image

Comment on lines -398 to +415
>>> 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
Copy link
Contributor Author

Choose a reason for hiding this comment

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

image

@codecov
Copy link

codecov bot commented Dec 2, 2020

Codecov Report

Merging #4283 (1311876) into master (7ff2f49) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #4283   +/-   ##
=======================================
  Coverage   87.59%   87.59%           
=======================================
  Files          88       88           
  Lines       14312    14312           
=======================================
  Hits        12536    12536           
  Misses       1776     1776           
Impacted Files Coverage Δ
pymc3/backends/base.py 86.92% <ø> (ø)
pymc3/distributions/transforms.py 97.70% <ø> (ø)
pymc3/sampling.py 86.21% <ø> (ø)

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

Successfully merging this pull request may close these issues.

3 participants