Skip to content

Commit

Permalink
Fixing the output plots of the two-hierarchical parameter model
Browse files Browse the repository at this point in the history
  • Loading branch information
kaybenleroll committed Aug 25, 2023
1 parent da67397 commit 71d9965
Show file tree
Hide file tree
Showing 11 changed files with 3,741 additions and 1,286 deletions.
9 changes: 8 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
FROM rocker/tidyverse:4.2.3
FROM rocker/tidyverse:4.3.0

ARG BUILD_DATE

LABEL org.opencontainers.image.source="https://github.com/kaybenleroll/btydbayes_investigation" \
org.opencontainers.image.authors="Mick Cooney <[email protected]>" \
org.label-schema.build-date=$BUILD_DATE


ENV TZ=Europe/Dublin

Expand Down
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,12 @@ clean-models:

### Docker targets
docker-build-image: Dockerfile
docker build -t ${IMAGE_TAG} -f Dockerfile .
docker build -t ${IMAGE_TAG} \
--build-arg BUILD_DATE=$(shell date -u +'%Y-%m-%dT%H:%M:%SZ') \
-f Dockerfile .

docker-show-context:
docker build -f context.dockerfile -t context-image .
docker build -f build/context.dockerfile -t context-image .
docker run --rm -it context-image find /tmp/build
docker rmi test:latest

Expand Down
File renamed without changes.
1,251 changes: 932 additions & 319 deletions construct_cdnow_twohier_pnbd_models.html

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions construct_cdnow_twohier_pnbd_models.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,7 @@ We also check $N_{eff}$ as a quick diagnostic of the fit.
#| echo: TRUE
pnbd_cdnow_twohiermean_stanfit |>
neff_ratio(pars = c("lambda", "mu")) |>
as.numeric() |>
neff_ratio(pars = c("lambda_mn", "mu_mn", "lambda", "mu")) |>
mcmc_neff() +
ggtitle("Plot of Parameter Effective Sample Sizes")
```
Expand Down
1,251 changes: 932 additions & 319 deletions construct_longsynth_twohier_pnbd_models.html

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions construct_longsynth_twohier_pnbd_models.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,7 @@ We also check $N_{eff}$ as a quick diagnostic of the fit.
#| echo: TRUE
pnbd_long_twohiermean_stanfit |>
neff_ratio(pars = c("lambda", "mu")) |>
as.numeric() |>
neff_ratio(pars = c("lambda_mn", "mu_mn", "lambda", "mu")) |>
mcmc_neff() +
ggtitle("Plot of Parameter Effective Sample Sizes")
```
Expand Down
1,247 changes: 930 additions & 317 deletions construct_onlineretail_twohier_pnbd_models.html

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions construct_onlineretail_twohier_pnbd_models.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,6 @@ We also check $N_{eff}$ as a quick diagnostic of the fit.
pnbd_onlineretail_twohiermean_stanfit |>
neff_ratio(pars = c("lambda_mn", "mu_mn", "lambda", "mu")) |>
as.numeric() |>
mcmc_neff() +
ggtitle("Plot of Parameter Effective Sample Sizes")
```
Expand Down Expand Up @@ -573,8 +572,6 @@ As for our short time frame data, overall our model is working well.





# Compare Model Outputs

We have looked at each of the models individually, but it is also worth looking
Expand Down
1,251 changes: 932 additions & 319 deletions construct_shortsynth_twohier_pnbd_models.html

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions construct_shortsynth_twohier_pnbd_models.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,7 @@ We also check $N_{eff}$ as a quick diagnostic of the fit.
#| echo: TRUE
pnbd_init_short_twohiermean_stanfit |>
neff_ratio(pars = c("lambda", "mu")) |>
as.numeric() |>
neff_ratio(pars = c("lambda_mn", "mu_mn", "lambda", "mu")) |>
mcmc_neff() +
ggtitle("Plot of Parameter Effective Sample Sizes")
```
Expand Down

0 comments on commit 71d9965

Please sign in to comment.