Skip to content

Commit d2d00ef

Browse files
committed
black
1 parent c6f4bac commit d2d00ef

File tree

1 file changed

+4
-24
lines changed

1 file changed

+4
-24
lines changed

examples/generalized_linear_models/GLM-robust-with-outlier-detection.ipynb

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1949,38 +1949,18 @@
19491949
" )\n",
19501950
"\n",
19511951
"# plot hogg outlier posterior distribution\n",
1952-
"gd.ax.plot(\n",
1953-
" x,\n",
1954-
" subsample_helper(trc_hogg.posterior[\"outlier_mean\"], 400),\n",
1955-
" color=\"C3\",\n",
1956-
" linewidth=0.5,\n",
1957-
" alpha=0.2,\n",
1958-
" zorder=1,\n",
1959-
")\n",
1952+
"outlier_mean = subsample_helper(trc_hogg.posterior[\"outlier_mean\"], 400)\n",
1953+
"gd.ax.plot(x, outlier_mean, color=\"C3\", linewidth=0.5, alpha=0.2, zorder=1)\n",
19601954
"\n",
19611955
"# plot the 3 model (inlier) posterior distributions\n",
19621956
"y_mean = subsample_helper(trc_ols.posterior[\"y_mean\"], 200)\n",
19631957
"gd.ax.plot(x, y_mean, color=\"C0\", linewidth=0.5, alpha=0.2, zorder=2)\n",
19641958
"\n",
19651959
"y_mean = subsample_helper(trc_studentt.posterior[\"y_mean\"], 200)\n",
1966-
"gd.ax.plot(\n",
1967-
" x,\n",
1968-
" y_mean,\n",
1969-
" color=\"C1\",\n",
1970-
" linewidth=0.5,\n",
1971-
" alpha=0.2,\n",
1972-
" zorder=3,\n",
1973-
")\n",
1960+
"gd.ax.plot(x, y_mean, color=\"C1\", linewidth=0.5, alpha=0.2, zorder=3)\n",
19741961
"\n",
19751962
"y_mean = subsample_helper(trc_hogg.posterior[\"y_mean\"], 200)\n",
1976-
"gd.ax.plot(\n",
1977-
" x,\n",
1978-
" y_mean,\n",
1979-
" color=\"C2\",\n",
1980-
" linewidth=0.5,\n",
1981-
" alpha=0.2,\n",
1982-
" zorder=4,\n",
1983-
")\n",
1963+
"gd.ax.plot(x, y_mean, color=\"C2\", linewidth=0.5, alpha=0.2, zorder=4)\n",
19841964
"\n",
19851965
"# add legend for regression lines plotted above\n",
19861966
"line_legend = plt.legend(\n",

0 commit comments

Comments
 (0)