Skip to content

Commit bd060bf

Browse files
committed
fix workflows
1 parent 88c069d commit bd060bf

3 files changed

Lines changed: 17 additions & 4 deletions

File tree

.github/workflows/main.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
on: [push]
2+
3+
jobs:
4+
nikola_build:
5+
runs-on: ubuntu-latest
6+
name: 'Deploy Nikola to GitHub Pages'
7+
steps:
8+
- name: Check out
9+
uses: actions/checkout@v2
10+
- name: Build and Deploy Nikola
11+
uses: getnikola/nikola-action@v4
12+
with:
13+
dry_run: false

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,3 @@ output
77
.doit.db*
88
site/pages/*.ipynb
99
site/listings/*.py
10-

notebooks/12_monsters_and_mixtures.ipynb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1294,7 +1294,9 @@
12941294
"kC = 0 # value for contact\n",
12951295
"kI = jnp.arange(2) # values of intention to calculate over\n",
12961296
"pdat = dict(A=kA, C=kC, I=kI)\n",
1297-
"phi = Predictive(m12_5.sampler.model, m12_5.get_samples())(random.PRNGKey(1), **pdat)[\n",
1297+
"post = m12_5.get_samples()\n",
1298+
"post.pop(\"phi\")\n",
1299+
"phi = Predictive(m12_5.sampler.model, post)(random.PRNGKey(1), **pdat)[\n",
12981300
" \"phi\"\n",
12991301
"]"
13001302
]
@@ -1324,7 +1326,6 @@
13241326
}
13251327
],
13261328
"source": [
1327-
"post = m12_5.get_samples()\n",
13281329
"for s in range(50):\n",
13291330
" pk = expit(post[\"cutpoints\"][s] - phi[s][..., None])\n",
13301331
" for i in range(6):\n",
@@ -1361,7 +1362,7 @@
13611362
"kI = jnp.arange(2) # values of intention to calculate over\n",
13621363
"pdat = dict(A=kA, C=kC, I=kI)\n",
13631364
"s = (\n",
1364-
" Predictive(m12_5.sampler.model, m12_5.get_samples())(random.PRNGKey(1), **pdat)[\"R\"]\n",
1365+
" Predictive(m12_5.sampler.model, post)(random.PRNGKey(1), **pdat)[\"R\"]\n",
13651366
" + 1\n",
13661367
")\n",
13671368
"plt.hist(s[:, 0], bins=jnp.arange(0.5, 8), rwidth=0.1)\n",

0 commit comments

Comments
 (0)