Skip to content

Commit 0f69036

Browse files
Update GLM Model Selection to best practices (#173)
* [WIP] Update GLM Model Selection to best practices * update with bambi * commit: use separate dicts for linear and quadratic models * update descriptions * remove duplicate initialization of traces_lin and traces_quad * fix and execute glm model selection notebook * add glm tag * add alt text to flying icon of level categories Co-authored-by: Oriol (ZBook) <[email protected]>
1 parent 3efe38f commit 0f69036

File tree

5 files changed

+1500
-467
lines changed

5 files changed

+1500
-467
lines changed

_templates/postcard_categories.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414

1515
{%- macro category_item(name, icon, active) -%}
16-
<a href="{{ pathtocategory(name) }}" class="{{ setcolorclass(active) }}">
16+
<a href="{{ pathtocategory(name) }}" class="{{ setcolorclass(active) }}" title="{{ name }}">
1717
<span class="fas {{ icon }}"></span>
1818
<label class="sr-only">{{ name }}</label>
1919
</a>

examples/conf.py

+1
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ def ipython_cell_transform(source):
153153
intersphinx_mapping = {
154154
"aesara": ("https://aesara.readthedocs.io/en/latest/", None),
155155
"arviz": ("https://arviz-devs.github.io/arviz/", None),
156+
"bambi": ("https://bambinos.github.io/bambi/main", None),
156157
"mpl": ("https://matplotlib.org/", None),
157158
"numpy": ("https://numpy.org/doc/stable/", None),
158159
"pandas": ("https://pandas.pydata.org/pandas-docs/stable/", None),

examples/generalized_linear_models/GLM-model-selection.ipynb

+1,449-466
Large diffs are not rendered by default.

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

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7+
"(GLM-robust-with-outlier-detection)=\n",
78
"# GLM: Robust Regression using Custom Likelihood for Outlier Classification\n",
89
"\n",
910
":::{post} 17 Nov, 2021\n",

examples/references.bib

+48
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
@article{ando2007bayesian,
2+
title={Bayesian predictive information criterion for the evaluation of hierarchical Bayesian and empirical Bayes models},
3+
author={Ando, Tomohiro},
4+
journal={Biometrika},
5+
volume={94},
6+
number={2},
7+
pages={443--458},
8+
year={2007},
9+
publisher={Oxford University Press},
10+
doi={10.1093/biomet/asm017}
11+
}
12+
113
@misc{carpenter2016hierarchical,
214
title={Hierarchical partial pooling for repeated binary trials},
315
author={Carpenter, Bob and Gabry, J and Goodrich, B},
@@ -208,6 +220,18 @@ @article{silver2016masteringgo
208220
url={https://doi.org/10.1038/nature16961}
209221
}
210222

223+
@article{spiegelhalter2002bayesian,
224+
title={Bayesian measures of model complexity and fit},
225+
author={Spiegelhalter, David J and Best, Nicola G and Carlin, Bradley P and Van Der Linde, Angelika},
226+
journal={Journal of the royal statistical society: Series b (statistical methodology)},
227+
volume={64},
228+
number={4},
229+
pages={583--639},
230+
year={2002},
231+
publisher={Wiley Online Library},
232+
doi={10.1111/rssb.12062}
233+
}
234+
211235
@misc{szegedy2014going,
212236
title={Going Deeper with Convolutions},
213237
author={Christian Szegedy and Wei Liu and Yangqing Jia and Pierre Sermanet and Scott Reed and Dragomir Anguelov and Dumitru Erhan and Vincent Vanhoucke and Andrew Rabinovich},
@@ -229,6 +253,30 @@ @INPROCEEDINGS{vanderplas2012astroML
229253
year={2012}
230254
}
231255

256+
@article{vehtari2017practical,
257+
title={Practical Bayesian model evaluation using leave-one-out cross-validation and WAIC},
258+
author={Vehtari, Aki and Gelman, Andrew and Gabry, Jonah},
259+
journal={Statistics and computing},
260+
volume={27},
261+
number={5},
262+
pages={1413--1432},
263+
year={2017},
264+
publisher={Springer},
265+
doi={10.1007/s11222-016-9696-4},
266+
eprint={1507.04544},
267+
archivePrefix={arXiv},
268+
primaryClass={stat.CO}
269+
}
270+
271+
@article{watanabe2010asymptotic,
272+
title={Asymptotic equivalence of Bayes cross validation and widely applicable information criterion in singular learning theory.},
273+
author={Watanabe, Sumio and Opper, Manfred},
274+
journal={Journal of machine learning research},
275+
volume={11},
276+
number={12},
277+
year={2010}
278+
}
279+
232280
@book{wilkinson2005grammar,
233281
title={The Grammar of Graphics},
234282
author={Wilkinson, Leland},

0 commit comments

Comments
 (0)