-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add scripts and notebook for validation stats and plots #84
base: 86-revise-trav-day
Are you sure you want to change the base?
Conversation
f6069a7
to
e486a73
Compare
e486a73
to
287811a
Compare
9412aa2
to
9df20d9
Compare
* Add stats for work trips * Add summary table of config to script * Add config ID
2c9583f
to
e705a0b
Compare
# Work From Home (1) and Travel to work (3) | ||
# .filter(pl.col("Place of work indicator (4 categories) code").is_in([1, 3])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove as no longer considering 1 and 3
) | ||
def main(config_file_stem: str | None, include_wfh: bool): | ||
records = [] | ||
for i, config_file in enumerate( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be helpful to raise an error if path or filepath stem is passed incorrectly.
) | ||
|
||
for _i, (origin, sub) in enumerate(gdf.groupby("ozone")): | ||
# fig, axs = plt.subplots(1, 3, figsize=(20, 16)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove
default=False, | ||
) | ||
@click.option("--scaling", type=float, default=1.0, required=False) | ||
def main( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add examples of calling the CLI to the scripts README
Contributes towards #17.
This PR adds a script to print validation stats (including$R^2$ correlation with census commuting flows) for a given config ID.