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

Make docs build pass #1204

Merged
merged 1 commit into from
Nov 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@
# You can specify multiple suffix as a list of string:
#
# source_suffix = ['.rst', '.md']
source_suffix = [".rst", ".ipynb"]
# NOTE: `.rst` is the default suffix of sphinx, and nbsphinx will
# automatically add support for `.ipynb` suffix.
Copy link
Member Author

Choose a reason for hiding this comment

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

This line does not take effect in old versions and will create new issue issue for new nbsphinx versions.


# do not execute cells
nbsphinx_execute = "never"
Expand Down
2 changes: 1 addition & 1 deletion notebooks/source/bayesian_hierarchical_stacking.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@
"\n",
"Such a matrix $W$ would be required to have each column sum to $1$. Hence, we calculate each row $W_i$ of $W$ as:\n",
"\n",
"$$ W_i = \\text{softmax}(X\\text{_stacking}_i \\cdot \\beta), $$\n",
"$$ W_i = \\text{softmax}(X\\_\\text{stacking}_i \\cdot \\beta), $$\n",
"\n",
"where $\\beta$ is a matrix whose values we seek to determine. For the discrete features, $\\beta$ is given a hierarchical structure over the possible inputs. Continuous features, on the other hand, get no hierarchical structure in this case study and just vary according to the input values.\n",
"\n",
Expand Down
8 changes: 5 additions & 3 deletions numpyro/distributions/directional.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,11 @@ def variance(self):


class SineSkewed(Distribution):
"""Sine-skewing [1] is a procedure for producing a distribution that breaks pointwise symmetry on a torus
r"""Sine-skewing [1] is a procedure for producing a distribution that breaks pointwise symmetry on a torus
distribution. The new distribution is called the Sine Skewed X distribution, where X is the name of the (symmetric)
base distribution. Torus distributions are distributions with support on products of circles
(i.e., ⨂^d S^1 where S^1=[-pi,pi) ). So, a 0-torus is a point, the 1-torus is a circle,
(i.e., :math:`\otimes S^1` where :math:`S^1 = [-pi,pi)`).
So, a 0-torus is a point, the 1-torus is a circle,
and the 2-torus is commonly associated with the donut shape.

The sine skewed X distribution is parameterized by a weight parameter for each dimension of the event of X.
Expand Down Expand Up @@ -284,7 +285,8 @@ def mean(self):


class SineBivariateVonMises(Distribution):
r"""Unimodal distribution of two dependent angles on the 2-torus (S^1 ⨂ S^1) given by
r"""Unimodal distribution of two dependent angles on the 2-torus
(:math:`S^1 \otimes S^1`) given by

.. math::
C^{-1}\exp(\kappa_1\cos(x_1-\mu_1) + \kappa_2\cos(x_2 -\mu_2) + \rho\sin(x_1 - \mu_1)\sin(x_2 - \mu_2))
Expand Down