From 2dde1c03b184a4e80248c5195f3c1cc1cbb09794 Mon Sep 17 00:00:00 2001 From: Du Phan Date: Thu, 15 Feb 2024 13:17:20 -0500 Subject: [PATCH] try another working directory --- .github/workflows/main.yml | 4 ++++ .../05_the_many_variables_and_the_spurious_waffles.ipynb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 107d174..056a14c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,5 +1,9 @@ on: [push] +defaults: + run: + working-directory: ./site + jobs: nikola_build: runs-on: ubuntu-latest diff --git a/notebooks/05_the_many_variables_and_the_spurious_waffles.ipynb b/notebooks/05_the_many_variables_and_the_spurious_waffles.ipynb index efbcb50..6ec678e 100644 --- a/notebooks/05_the_many_variables_and_the_spurious_waffles.ipynb +++ b/notebooks/05_the_many_variables_and_the_spurious_waffles.ipynb @@ -574,7 +574,7 @@ "source": [ "# call predictive without specifying new data\n", "# so it uses original data\n", - "post = m5_3.sample_posterior(random.PRNGKey(1), p5_3, (int(1e4),))\n", + "post = m5_3.sample_posterior(random.PRNGKey(1), p5_3, sample_shape=(int(1e4),))\n", "post.pop(\"mu\")\n", "post_pred = Predictive(m5_3.model, post)(random.PRNGKey(2), M=d.M.values, A=d.A.values)\n", "mu = post_pred[\"mu\"]\n",