You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update notebook GLM-negative-binomial-regression to pymc v5 (pymc-devs#575)
* Add seaborn to the requirements-docs.txt
* Update notebook GLM-negative-binomial-regression to pymc v5
* Run pre-commit
* Remove unrelated files, sort requirements alphabetically, edit notebook based on PR feedback
* Add seaborn to notebook extra dependency and remove from requirements-docs.txt
* get ready to merge
---------
Co-authored-by: Oriol Abril-Pla <[email protected]>
Copy file name to clipboardExpand all lines: examples/generalized_linear_models/GLM-negative-binomial-regression.myst.md
+16-5Lines changed: 16 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,20 +5,26 @@ jupytext:
5
5
format_name: myst
6
6
format_version: 0.13
7
7
kernelspec:
8
-
display_name: Python 3.9.12 ('pymc-dev-py39')
8
+
display_name: Python 3 (ipykernel)
9
9
language: python
10
10
name: python3
11
+
myst:
12
+
substitutions:
13
+
extra_dependencies: seaborn
11
14
---
12
15
13
16
(GLM-negative-binomial-regression)=
14
17
# GLM: Negative Binomial Regression
15
18
16
-
:::{post} June, 2022
19
+
:::{post} September, 2023
17
20
:tags: negative binomial regression, generalized linear model,
18
21
:category: beginner
19
22
:author: Ian Ozsvald, Abhipsha Das, Benjamin Vincent
20
23
:::
21
24
25
+
:::{include} ../extra_installs.md
26
+
:::
27
+
22
28
```{code-cell} ipython3
23
29
import arviz as az
24
30
import numpy as np
@@ -33,7 +39,7 @@ from scipy import stats
33
39
RANDOM_SEED = 8927
34
40
rng = np.random.default_rng(RANDOM_SEED)
35
41
36
-
%config InlineBackend.figure_format = 'retina'
42
+
%config InlineBackend.figure_format = "retina"
37
43
az.style.use("arviz-darkgrid")
38
44
```
39
45
@@ -221,19 +227,24 @@ Finally, the mean of `nsneeze_alpha` is also quite close to its actual value of
221
227
222
228
+++
223
229
224
-
See also, [`bambi's` negative binomial example](https://bambinos.github.io/bambi/master/notebooks/negative_binomial.html) for further reference.
230
+
See also, [`bambi's` negative binomial example](https://bambinos.github.io/bambi/notebooks/negative_binomial.html) for further reference.
225
231
226
232
+++
227
233
228
234
## Authors
229
235
- Created by [Ian Ozsvald](https://github.com/ianozsvald)
230
236
- Updated by [Abhipsha Das](https://github.com/chiral-carbon) in August 2021
231
237
- Updated by [Benjamin Vincent](https://github.com/drbenvincent) to PyMC v4 in June 2022
238
+
- Updated by [Wesley Boelrijk](https://github.com/wesleyboelrijk) to PyMC v5 in September 2023
0 commit comments