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

transform_quantile_to_pmf #11

Merged
merged 9 commits into from
Sep 25, 2024
Merged

transform_quantile_to_pmf #11

merged 9 commits into from
Sep 25, 2024

Conversation

elray1
Copy link
Contributor

@elray1 elray1 commented Sep 20, 2024

This would fix #10

@elray1 elray1 closed this Sep 23, 2024
@elray1 elray1 reopened this Sep 23, 2024
@elray1 elray1 marked this pull request as draft September 23, 2024 16:08
@elray1 elray1 marked this pull request as ready for review September 23, 2024 16:41
Copy link
Collaborator

@lshandross lshandross left a comment

Choose a reason for hiding this comment

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

Generally looks good to me, just one comment about potentially adding a warning and modifying the function docs

if (! "quantile" %in% unique_output_types) {
cli::cli_abort("{.arg model_out_tbl} must contain predictions with output type 'quantile'.")
}
model_out_tbl <- model_out_tbl |> dplyr::filter(.data[["output_type"]] == "quantile")
Copy link
Collaborator

Choose a reason for hiding this comment

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

If we're allowing the model_out_tbl to have non-quantile output types but are filtering those out, we should warn the user and/or note this in the function description (I prefer to do both).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the suggestion!

In 244ef6d I updated the documentation to clarify that the returned object has only the new-created pmf forecasts. I was thinking this would address your concern by more generally clarifying that everything in the input model_out_tbl is discarded. Does that make sense?

Copy link
Collaborator

Choose a reason for hiding this comment

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

yes it makes sense to me!

@elray1 elray1 merged commit 8547f3e into main Sep 25, 2024
6 checks passed
@elray1 elray1 deleted the transform_quantile_to_pmf branch September 25, 2024 14:19
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.

transform_quantile_to_pmf
2 participants