Skip to content

Commit

Permalink
removed gumbel_sf function that is not being used
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Dekermanjian authored and Jonathan Dekermanjian committed Nov 26, 2024
1 parent 88d9858 commit 2ce788f
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 84 deletions.
147 changes: 70 additions & 77 deletions examples/survival_analysis/weibull_aft.ipynb

Large diffs are not rendered by default.

7 changes: 0 additions & 7 deletions examples/survival_analysis/weibull_aft.myst.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ with pm.Model() as model_2:

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

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

```{code-cell} ipython3
logtime = np.log(y)
def gumbel_sf(y, mu, sigma):
"""Gumbel survival function."""
return 1.0 - pt.exp(-pt.exp(-(y - mu) / sigma))
```

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

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

Expand Down

0 comments on commit 2ce788f

Please sign in to comment.