Skip to content
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

Pathfinder initialisation #110

Closed
wants to merge 5 commits into from
Closed

Pathfinder initialisation #110

wants to merge 5 commits into from

Conversation

SamuelBrand1
Copy link
Collaborator

This draft PR is aimed at addressing #56 .

Implemented feature

  • A "safe-mode" version of the turing model to avoid early check-out in pathfinder runs here. This is to be used internally.

Usage

The usage is being developed in script here:

safe_model = make_epi_aware(truth_data, time_horizon, Val(:safe);
epi_model = epi_model,
latent_model_model = rwp,
observation_model = obs_model,
pos_shift = 1e-6)
mpf_result = multipathfinder(safe_model, 1000; nruns = 10)
mpf_chn = mpf_result.draws_transformed
@time chn = sample(model,
NUTS(; adtype = AutoReverseDiff(true)),
MCMCThreads(),
250,
4;
drop_warmup = true,
init_params = collect.(eachrow(mpf_chn.value[1:4, :, 1]))
)

API goal

A wrapper function that ingests an EpiAware model specification, data and runs the whole inference from pathfinder through NUTS.

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.

1 participant