Skip to content

Commit 2ce788f

Browse files
Jonathan DekermanjianJonathan Dekermanjian
authored andcommitted
removed gumbel_sf function that is not being used
1 parent 88d9858 commit 2ce788f

File tree

2 files changed

+70
-84
lines changed

2 files changed

+70
-84
lines changed

examples/survival_analysis/weibull_aft.ipynb

Lines changed: 70 additions & 77 deletions
Large diffs are not rendered by default.

examples/survival_analysis/weibull_aft.myst.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ with pm.Model() as model_2:
147147

148148
```{code-cell} ipython3
149149
with model_2:
150-
# Increase target_accept to avoid divergences
151150
idata_param2 = pm.sample(nuts_sampler="numpyro")
152151
```
153152

@@ -165,11 +164,6 @@ In this parameterization, we model the log-linear error distribution with a Gumb
165164

166165
```{code-cell} ipython3
167166
logtime = np.log(y)
168-
169-
170-
def gumbel_sf(y, mu, sigma):
171-
"""Gumbel survival function."""
172-
return 1.0 - pt.exp(-pt.exp(-(y - mu) / sigma))
173167
```
174168

175169
```{code-cell} ipython3
@@ -188,7 +182,6 @@ with pm.Model() as model_3:
188182

189183
```{code-cell} ipython3
190184
with model_3:
191-
# Change init to avoid divergences
192185
idata_param3 = pm.sample(tune=4000, draws=2000, nuts_sampler="numpyro")
193186
```
194187

0 commit comments

Comments
 (0)