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

Implement daily ascertainment in underlying truth data sampling #279

Merged
merged 8 commits into from
Jun 12, 2024

Conversation

SamuelBrand1
Copy link
Collaborator

@SamuelBrand1 SamuelBrand1 commented Jun 12, 2024

This PR changes the analysis pipeline so that the truth data is generated with all parameters specified. It closes #256 .

Default daily relative ascertainment

I've fixed the logit relative ascertainment by day of week to $0$ for week days and $-0.5$ for weekends. This translates to a weekend ascertainment being about 60% of the weekday rate. A new parameter constructor has been added that follows similar pattern to other constuctors.

simulate and generate_truthdata

I've reworked these functions to use DynamicPPL.fix to simulate with fixed parameters, and save these values. I think this is preferable to the previous pattern of fixing some things and letting others come from sample from specified prior distributions. This means that DynamicPPL and LogExpFunctions are direct deps of the pipeline in this PR.

Minor issues

  • Fixed a bug causing problems in the example pipeline temp directory where simulate would fail because it couldn't save.
  • Updated unit tests.

@SamuelBrand1 SamuelBrand1 requested a review from seabbs June 12, 2024 13:17
@SamuelBrand1 SamuelBrand1 linked an issue Jun 12, 2024 that may be closed by this pull request
@seabbs seabbs enabled auto-merge June 12, 2024 14:13
Copy link
Collaborator

@seabbs seabbs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like it. Looks good.

@seabbs seabbs added this pull request to the merge queue Jun 12, 2024
Merged via the queue into main with commit 453fa1e Jun 12, 2024
10 checks passed
@seabbs seabbs deleted the 256-redo-underlying-truth-data-sampling branch June 12, 2024 14:25
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.

Redo underlying "truth data" sampling
2 participants