Skip to content

New hardhat quantiles #442

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

Closed
wants to merge 30 commits into from
Closed

New hardhat quantiles #442

wants to merge 30 commits into from

Conversation

dajmcdon
Copy link
Contributor

Checklist

Please:

  • Make sure this PR is against "dev", not "main".
  • Request a review from one of the current epipredict main reviewers:
    dajmcdon.
  • Make sure to bump the version number in DESCRIPTION and NEWS.md.
    Always increment the patch version number (the third number), unless you are
    making a release PR from dev to main, in which case increment the minor
    version number (the second number).
  • Describe changes made in NEWS.md, making sure breaking changes
    (backwards-incompatible changes to the documented interface) are noted.
    Collect the changes under the next release number (e.g. if you are on
    0.7.2, then write your changes under the 0.8 heading).

Change explanations for reviewer

This PR replaces dist_quantiles(), a custom distribution related to the distributional package, with quantile_pred() from the hardhat package. This is one step in off-loading some custom components to core tidymodels functionality.

dajmcdon added 30 commits July 4, 2024 16:03
* missing rlang prefix
* max(NULL, date) produces an integer, tests fail
Merge branch 'dev' into 330-epi_recipe

# Conflicts:
#	R/arx_forecaster.R
#	R/epi_recipe.R
#	tests/testthat/test-epi_recipe.R
Merge branch 'dev' into 330-epi_recipe

# Conflicts:
#	DESCRIPTION
#	NAMESPACE
#	R/autoplot.R
#	R/epi_keys.R
#	R/epi_recipe.R
#	R/layer_add_forecast_date.R
#	R/layer_add_target_date.R
#	R/layer_cdc_flatline_quantiles.R
#	R/layer_threshold_preds.R
#	R/layers.R
#	R/reexports-tidymodels.R
#	R/step_training_window.R
#	man/autoplot-epipred.Rd
#	man/layer_add_forecast_date.Rd
#	man/layer_add_target_date.Rd
#	man/layer_cdc_flatline_quantiles.Rd
#	man/layer_threshold.Rd
#	man/recipe.epi_df.Rd
#	man/reexports.Rd
#	man/step_training_window.Rd
#	man/update.layer.Rd
#	tests/testthat/test-key_colnames.R
#	tests/testthat/test-population_scaling.R
#	vignettes/update.Rmd
Deprecate `epi_recipe()` in favour of `recipe()`
Merge commit 'b74c039' into new-hardhat-quantiles

# Conflicts:
#	DESCRIPTION
#	NAMESPACE
#	R/arx_forecaster.R
#	R/autoplot.R
#	R/cdc_baseline_forecaster.R
#	R/dist_quantiles.R
#	R/epi_recipe.R
#	R/epi_workflow.R
#	R/frosting.R
#	R/get_test_data.R
#	R/layer_cdc_flatline_quantiles.R
#	R/step_epi_naomit.R
#	R/step_epi_shift.R
#	R/step_epi_slide.R
#	R/step_growth_rate.R
#	R/step_lag_difference.R
#	_pkgdown.yml
#	man/cdc_baseline_forecaster.Rd
#	man/frosting.Rd
#	man/get_test_data.Rd
#	man/layer_cdc_flatline_quantiles.Rd
#	man/predict-epi_workflow.Rd
#	man/recipe.epi_df.Rd
#	man/step_epi_naomit.Rd
#	man/step_epi_shift.Rd
#	man/step_epi_slide.Rd
#	man/step_growth_rate.Rd
#	man/step_lag_difference.Rd
#	tests/testthat/test-check_enough_train_data.R
#	tests/testthat/test-dist_quantiles.R
#	tests/testthat/test-epi_recipe.R
#	tests/testthat/test-epi_workflow.R
#	tests/testthat/test-get_test_data.R
#	tests/testthat/test-key_colnames.R
#	tests/testthat/test-layer_add_forecast_date.R
#	tests/testthat/test-step_epi_shift.R
#	tests/testthat/test-step_epi_slide.R
#	tests/testthat/test-step_training_window.R
#	vignettes/preprocessing-and-models.Rmd
@dajmcdon
Copy link
Contributor Author

Something's wrong with the diff above. It shouldn't have some of these commits.

@dshemetov
Copy link
Contributor

dshemetov commented Feb 25, 2025

it has #370 and #394 in there, so i think you branched off dev...v0.2.0

@dajmcdon
Copy link
Contributor Author

dajmcdon commented Feb 26, 2025

I didn't, and it doesn't have those changes. For example, best as I can tell, nothing from #370 is actually here. It should only have/need b7c039 and later.

@dajmcdon dajmcdon closed this Feb 26, 2025
@dajmcdon dajmcdon mentioned this pull request Feb 26, 2025
4 tasks
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