Skip to content

Commit

Permalink
Merge branch 'master' into adjoint-leak
Browse files Browse the repository at this point in the history
  • Loading branch information
fehiepsi authored Mar 10, 2025
2 parents f0fe41a + 7365f38 commit c9fd4c5
Show file tree
Hide file tree
Showing 25 changed files with 1,974 additions and 117 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@ jobs:
run: |
make lint
- name: Build documentation
if: matrix.python-version != '3.9'
run: |
make docs
- name: Test documentation
if: matrix.python-version != '3.9'
run: |
make doctest
python -m doctest -v README.md
Expand Down Expand Up @@ -83,12 +85,10 @@ jobs:
env:
JAX_CHECK_TRACER_LEAKS: 1
run: |
pytest -vs test/contrib/einstein/test_steinvi.py::test_run_smoke -k ASVGD
pytest -vs test/infer/test_mcmc.py::test_chain_inside_jit
pytest -vs test/infer/test_mcmc.py::test_chain_jit_args_smoke
pytest -vs test/infer/test_mcmc.py::test_reuse_mcmc_run
pytest -vs test/infer/test_mcmc.py::test_model_with_multiple_exec_paths
pytest -vs test/infer/test_svi.py::test_mutable_state
pytest -vs test/test_distributions.py::test_mean_var -k Gompertz
- name: Coveralls
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ repos:
- id: codespell
stages: [pre-commit, commit-msg]
args:
[--ignore-words-list, "Teh,aas,ans", --check-filenames, --skip, "*.ipynb"]
[--ignore-words-list, "Teh,aas,ans,dout", --check-filenames, --skip, "*.ipynb"]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions docs/source/distributions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,14 @@ Chi2
:show-inheritance:
:member-order: bysource

CirculantNormal
^^^^^^^^^^^^^^^
.. autoclass:: numpyro.distributions.continuous.CirculantNormal
:members:
:undoc-members:
:show-inheritance:
:member-order: bysource

Dirichlet
^^^^^^^^^
.. autoclass:: numpyro.distributions.continuous.Dirichlet
Expand Down Expand Up @@ -998,6 +1006,14 @@ OrderedTransform
:show-inheritance:
:member-order: bysource

PackRealFastFourierCoefficientsTransform
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. autoclass:: numpyro.distributions.transforms.PackRealFastFourierCoefficientsTransform
:members:
:undoc-members:
:show-inheritance:
:member-order: bysource

PermuteTransform
^^^^^^^^^^^^^^^^
.. autoclass:: numpyro.distributions.transforms.PermuteTransform
Expand Down
2 changes: 2 additions & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ NumPyro documentation
tutorials/censoring
tutorials/hsgp_example
tutorials/other_samplers
tutorials/circulant_gp
tutorials/nnx_example

.. nbgallery::
:maxdepth: 1
Expand Down
8 changes: 8 additions & 0 deletions docs/source/primitives.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ haiku_module
------------
.. autofunction:: numpyro.contrib.module.haiku_module

nnx_module
----------
.. autofunction:: numpyro.contrib.module.nnx_module

random_flax_module
------------------
.. autofunction:: numpyro.contrib.module.random_flax_module
Expand All @@ -59,6 +63,10 @@ random_haiku_module
-------------------
.. autofunction:: numpyro.contrib.module.random_haiku_module

random_nnx_module
-----------------
.. autofunction:: numpyro.contrib.module.random_nnx_module

scan
----
.. autofunction:: numpyro.contrib.control_flow.scan
Expand Down
319 changes: 319 additions & 0 deletions notebooks/source/circulant_gp.ipynb

Large diffs are not rendered by default.

699 changes: 699 additions & 0 deletions notebooks/source/nnx_example.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit c9fd4c5

Please sign in to comment.