Skip to content

Commit ce40f40

Browse files
committed
Rerunning precommit
1 parent e080156 commit ce40f40

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

examples/gaussian_processes/GP-Kron.ipynb

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@
504504
" fnew = gp.conditional(\"fnew\", Xnew)\n",
505505
"\n",
506506
"with model:\n",
507-
" ppc = pm.sample_posterior_predictive(tr, 200, var_names=['fnew'])"
507+
" ppc = pm.sample_posterior_predictive(tr, 200, var_names=[\"fnew\"])"
508508
]
509509
},
510510
{
@@ -540,9 +540,7 @@
540540
" Xnew[:, 0], Xnew[:, 1], s=30, c=np.mean(ppc[\"fnew\"], axis=0), marker=\"s\", norm=norm, cmap=cmap\n",
541541
")\n",
542542
"plt.ylabel(\"x2\"), plt.xlabel(\"x1\")\n",
543-
"plt.title(\n",
544-
" \"observed data 'y' (circles) with mean of conditional, or predicted, samples (squares)\"\n",
545-
");"
543+
"plt.title(\"observed data 'y' (circles) with mean of conditional, or predicted, samples (squares)\");"
546544
]
547545
},
548546
{
@@ -573,11 +571,11 @@
573571
}
574572
],
575573
"source": [
576-
"fig, axs = plt.subplots(2,2, figsize=(24, 16))\n",
577-
"axs = axs.ravel()\n",
574+
"fig, axs = plt.subplots(2, 2, figsize=(24, 16))\n",
575+
"axs = axs.ravel()\n",
578576
"\n",
579577
"for i, ax in enumerate(axs):\n",
580-
" ax.axis('off') \n",
578+
" ax.axis(\"off\")\n",
581579
" ax.scatter(X[:, 0], X[:, 1], s=20, c=y, marker=\"o\", norm=norm, cmap=cmap)\n",
582580
" ax.scatter(Xnew[:, 0], Xnew[:, 1], s=20, c=ppc[\"fnew\"][i], marker=\"s\", norm=norm, cmap=cmap)\n",
583581
" ax.set_title(f\"Sample {i+1}\", fontsize=24)"

0 commit comments

Comments
 (0)