Skip to content

Commit 3681a15

Browse files
docs: fix paths (#1641)
* fix paths * increase tutorial notebook test timeout --------- Co-authored-by: Jan <jan.boelts@mailbox.org>
1 parent 29416f6 commit 3681a15

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,13 +164,13 @@ how to run each of these methods
164164
and hassle-free simulation-based inference_](https://arxiv.org/abs/2210.04815)
165165
(NeurIPS 2022).
166166

167-
- [`FMPE`](https://sbi-dev.github.io/sbi/latest/reference/#sbi.inference.trainers.fmpe.fmpe.FMPE)
167+
- [`FMPE`](https://sbi-dev.github.io/sbi/latest/reference/#sbi.inference.trainers.vfpe.fmpe.FMPE)
168168
from Wildberger, J., Dax, M., Buchholz, S., Green, S., Macke, J. H., & Schölkopf, B.
169169
[_Flow matching for scalable simulation-based
170170
inference_](https://proceedings.neurips.cc/paper_files/paper/2023/hash/3663ae53ec078860bb0b9c6606e092a0-Abstract-Conference.html).
171171
(NeurIPS 2023).
172172

173-
- [`NPSE`](https://sbi-dev.github.io/sbi/latest/reference/#sbi.inference.trainers.npse.npse.NPSE) from
173+
- [`NPSE`](https://sbi-dev.github.io/sbi/latest/reference/#sbi.inference.trainers.vfpe.npse.NPSE) from
174174
Geffner, T., Papamakarios, G., & Mnih, A. [_Compositional score modeling for
175175
simulation-based inference_](https://proceedings.mlr.press/v202/geffner23a.html).
176176
(ICML 2023)

mkdocs/docs/reference/inference.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
filters: [ "!^_", "^__", "!^__class__" ]
1818
inherited_members: true
1919

20-
::: sbi.inference.trainers.fmpe.fmpe.FMPE
20+
::: sbi.inference.trainers.vfpe.fmpe.FMPE
2121
selection:
2222
filters: [ "!^_", "^__", "!^__class__" ]
2323
inherited_members: true
2424

25-
::: sbi.inference.trainers.npse.npse.NPSE
25+
::: sbi.inference.trainers.vfpe.npse.NPSE
2626
selection:
2727
filters: [ "!^_", "^__", "!^__class__" ]
2828
inherited_members: true

tests/tutorials_test.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
from nbclient.exceptions import CellExecutionError
99
from nbconvert.preprocessors import ExecutePreprocessor
1010

11+
TEST_TIMEOUT = 1200
12+
1113

1214
def list_notebooks(directory: str) -> list:
1315
"""Return sorted list of all notebooks in a directory."""
@@ -25,7 +27,7 @@ def test_tutorials(notebook_path):
2527
"""Test that all notebooks in the tutorials directory can be executed."""
2628
with open(notebook_path) as f:
2729
nb = nbformat.read(f, as_version=4)
28-
ep = ExecutePreprocessor(timeout=600, kernel_name='python3')
30+
ep = ExecutePreprocessor(timeout=TEST_TIMEOUT, kernel_name='python3')
2931
print(f"Executing notebook {notebook_path}")
3032
try:
3133
ep.preprocess(nb, {'metadata': {'path': os.path.dirname(notebook_path)}})

0 commit comments

Comments
 (0)