Skip to content

Commit 1abafd1

Browse files
committed
use durations=0
to measure times
1 parent e9bd51d commit 1abafd1

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
branches: [ master ]
88

99
jobs:
10-
chapters_00_13:
10+
even_chapters:
1111

1212
runs-on: ubuntu-latest
1313
strategy:
@@ -28,11 +28,10 @@ jobs:
2828
pip install nbval
2929
- name: Test with nbval
3030
run: |
31-
find notebooks -maxdepth 1 -name "0*.ipynb" | sort -n | xargs pytest -vx --nbval-lax
32-
find notebooks -maxdepth 1 -name "1[0-3]*.ipynb" | sort -n | xargs pytest -vx --nbval-lax
31+
find notebooks -maxdepth 1 -name "[01][02468]*.ipynb" | sort -n | xargs pytest -vx --nbval-lax --durations=0
3332
3433
35-
chapters_14_17:
34+
odd_chapters:
3635

3736
runs-on: ubuntu-latest
3837
strategy:
@@ -53,5 +52,5 @@ jobs:
5352
pip install nbval
5453
- name: Test with nbval
5554
run: |
56-
find notebooks -maxdepth 1 -name "1[4-7]*.ipynb" | sort -n | xargs pytest -vx --nbval-lax
55+
find notebooks -maxdepth 1 -name "[01][13579]*.ipynb" | sort -n | xargs pytest -vx --nbval-lax --durations=0
5756

notebooks/13_models_with_memory.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15952,7 +15952,7 @@
1595215952
" b = numpyro.sample(\"b\", dist.Normal(0, 0.5), sample_shape=(4,))\n",
1595315953
" logit_p = a[actor] + g[block_id] + b[treatment]\n",
1595415954
" if link:\n",
15955-
" numpyro.sample(\"p\", expit(logit_p))\n",
15955+
" numpyro.deterministic(\"p\", expit(logit_p))\n",
1595615956
" numpyro.sample(\"pulled_left\", dist.Binomial(logits=logit_p), obs=pulled_left)\n",
1595715957
"\n",
1595815958
"\n",

0 commit comments

Comments
 (0)