Skip to content

simulation testing and hierarchical implementation #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Nov 11, 2022
Merged

Conversation

hyunjimoon
Copy link
Contributor

@hyunjimoon hyunjimoon commented Nov 10, 2022

In demo_simulation_test.py, basic settings with different S, M, N, Q, R and time_step is ready.

sbc_hier folder contains hierarchical extension with S = 1
sbc_hier2 folder contains hierarchical extension with S = 3

ONE TOUGH(not hierarchy, yet) + CONSISTENCY between contents in three folders plot, data, stan_files are key.

When revisiting this start from:

  1. implement automatic stan translator (for stan file is manually changed, the file can be checked in sbc_hier Putting prior, prior predictive, posterior into one inferencedata for hierarchical sbc #12
  2. combine draws2data2draws_hier with draws2data2draws function

@hyunjimoon hyunjimoon mentioned this pull request Nov 11, 2022
@hyunjimoon
Copy link
Contributor Author

hyunjimoon commented Nov 11, 2022

while increasing S to 3, the following prior_predictive appeared; should check prior_pred_check fucntion
image
pp_S1R2 needs fixing

@hyunjimoon hyunjimoon merged commit 86c0582 into main Nov 11, 2022
@tomfid
Copy link
Collaborator

tomfid commented Nov 11, 2022

The link to demo_simulation_test.py gives me a 404 error - guessing all this moved?

@hyunjimoon
Copy link
Contributor Author

hyunjimoon commented Nov 13, 2022

The link to demo_simulation_test.py gives me a 404 error - guessing all this moved?

Organized it all yesterday: https://github.com/Data4DM/stanify/blob/main/prey_predator.py

By the way, because of C++ toolchain and compilation (which thankfully gives speedup, desired by Hazhir), some students were having difficulty installing cmdstanpy. Did you manage to run it on your local computer? I heard for windows, you should run cmdstanpy.install_cmdstan(compiler = True)

This is the slack channel I asked about installing cmdstan last week

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants