Skip to content

Fix warnings from docstrings when building docs, remove t_stick_breaking - #4283

Merged
michaelosthege merged 1 commit into
pymc-devs:masterfrom
MarcoGorelli:fix-docs
Dec 3, 2020
Merged

Fix warnings from docstrings when building docs, remove t_stick_breaking#4283
michaelosthege merged 1 commit into
pymc-devs:masterfrom
MarcoGorelli:fix-docs

Conversation

@MarcoGorelli

Copy link
Copy Markdown
Contributor

xref #4276

ordered
log
sum_to_1
t_stick_breaking

Copy link
Copy Markdown
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

Comment thread pymc3/sampling.py
-----
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
Copy Markdown
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 thread pymc3/sampling.py
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
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

image

@codecov

codecov Bot commented Dec 2, 2020

Copy link
Copy Markdown

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% <ø> (ø)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants