Skip to content

Commit

Permalink
fix warnings (#4300)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli authored Dec 8, 2020
1 parent 648617d commit d595d29
Show file tree
Hide file tree
Showing 10 changed files with 54 additions and 7 deletions.
5 changes: 5 additions & 0 deletions docs/source/Advanced_usage_of_Theano_in_PyMC3.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
:orphan:

..
_referenced in docs/source/notebooks/table_of_contents_tutorials.js
=================================
Advanced usage of Theano in PyMC3
=================================
Expand Down
5 changes: 5 additions & 0 deletions docs/source/Gaussian_Processes.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
:orphan:

..
_href from docs/source/index.rst
******************
Gaussian Processes
******************
Expand Down
5 changes: 5 additions & 0 deletions docs/source/Probability_Distributions.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
:orphan:

..
_href from docs/source/index.rst
.. _prob_dists:

**********************************
Expand Down
5 changes: 5 additions & 0 deletions docs/source/PyMC3_and_Theano.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
:orphan:

..
_href from docs/source/index.rst
================
PyMC3 and Theano
================
Expand Down
5 changes: 5 additions & 0 deletions docs/source/about.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
:orphan:

..
_href from docs/source/index.rst
.. _about:

***********
Expand Down
5 changes: 5 additions & 0 deletions docs/source/api.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
:orphan:

..
_"api" is referenced in html_theme_options docs/source/conf.py
.. _api:

***************
Expand Down
5 changes: 5 additions & 0 deletions docs/source/developer_guide.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
:orphan:

..
_referenced in html_theme_options docs/source/conf.py
=====================
PyMC3 Developer Guide
=====================
Expand Down
14 changes: 8 additions & 6 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@
X, y = linear_training_data()
with pm.Model() as linear_model:
weights = pm.Normal('weights', mu=0, sigma=1)
noise = pm.Gamma('noise', alpha=2, beta=1)
y_observed = pm.Normal('y_observed',
mu=X @ weights,
sigma=noise,
observed=y)
weights = pm.Normal("weights", mu=0, sigma=1)
noise = pm.Gamma("noise", alpha=2, beta=1)
y_observed = pm.Normal(
"y_observed",
mu=X @ weights,
sigma=noise,
observed=y,
)
prior = pm.sample_prior_predictive()
posterior = pm.sample()
Expand Down
7 changes: 6 additions & 1 deletion docs/source/learn.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
:orphan:

..
_"learn" is referenced in html_theme_options docs/source/conf.py
.. title:: Learning Resources

.. raw:: html
Expand Down Expand Up @@ -99,7 +104,7 @@

<div class="card">
<div class="image">
<img src="https://lh5.googleusercontent.com/R1T8ZXbMi4vSO0JlnLQMkEQNvd2ncBb23OmHOsmw-t_oEOF6jJlfWuJoOK0MMmECSDymhUdfTS2yoMgkR2TY-xIiBTHCpeuYjzXqD3xhZ-MuIhs2ARcJ=w1280">
<img src="https://lh5.googleusercontent.com/Ms2ssellxl7cM6OEL_kpiKRojcj2E4ZaUWDXOa8zEwi-v9orJGYuhjczbwFSDJNsEb_ruiwtCJONNjoo7T1c7qorZm3LsAnroMAm4S5WzNT_PVqWz9aE=w1280">
</div>
<div class="content">
<div class="header">Doing Bayesian Data Analysis</div>
Expand Down
5 changes: 5 additions & 0 deletions docs/source/sphinxext/gallery_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
TABLE_OF_CONTENTS_FILENAME = "table_of_contents_{}.js"

INDEX_TEMPLATE = """
:orphan:
..
_href from docs/source/conf.py
.. _{sphinx_tag}:
.. title:: {gallery}_notebooks
Expand Down

0 comments on commit d595d29

Please sign in to comment.