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

Cross link across random variable docs #1091

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions doc/library/tensor/random/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ sophisticated `Op`\s like `Scan`, which makes it a user-friendly random variable
interface in PyTensor.

For an example of how to use random numbers, see :ref:`Using Random Numbers <using_random_numbers>`.
For a technical explanation of how PyTensor implements random variables see :ref:`prng`.


.. class:: RandomStream()
Expand Down
3 changes: 3 additions & 0 deletions doc/tutorial/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,9 @@ hold here as well. PyTensor's random objects are defined and implemented in
:ref:`RandomStream<libdoc_tensor_random_utils>` and, at a lower level,
in :ref:`RandomVariable<libdoc_tensor_random_basic>`.

For a more technical explanation of how PyTensor implements random variables see :ref:`prng`.


Brief Example
-------------

Expand Down
4 changes: 3 additions & 1 deletion doc/tutorial/prng.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ Pseudo random number generation in PyTensor
===========================================

PyTensor has native support for `pseudo random number generation (PRNG) <https://en.wikipedia.org/wiki/Pseudorandom_number_generator>`_.
This document describes how PRNGs are implemented in PyTensor, via the RandomVariable Operator.

This document describes the details of how PRNGs are implemented in PyTensor, via the RandomVariable Operator.
For a more applied example see :ref:`using_random_numbers`

We also discuss how initial seeding and seeding updates are implemented, and some harder cases such as using RandomVariables inside Scan, or with other backends like JAX.

Expand Down
Loading