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

quantile regression updates for new hardhat model #1207

Merged
merged 20 commits into from
Sep 25, 2024

Conversation

topepo
Copy link
Member

@topepo topepo commented Sep 23, 2024

Depends on hardhat >= 1.4.0.9002.

The main update is that the hardhat code is standardized on the plural quantile_levels.

@topepo topepo marked this pull request as ready for review September 23, 2024 16:58
@topepo topepo closed this Sep 23, 2024
@topepo topepo reopened this Sep 23, 2024
@topepo
Copy link
Member Author

topepo commented Sep 23, 2024

Closed and reopened to trigger CI for branch != main

@topepo topepo closed this Sep 23, 2024
@topepo topepo reopened this Sep 23, 2024
@topepo topepo requested a review from hfrick September 25, 2024 01:48
Copy link
Member

@hfrick hfrick left a comment

Choose a reason for hiding this comment

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

Looks good!

@@ -8,7 +8,7 @@ on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
Copy link
Member

Choose a reason for hiding this comment

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

I'm commenting on this so that we have a TODO marker for undoing this change when we are ready to merge.

@@ -4,7 +4,7 @@ on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
Copy link
Member

Choose a reason for hiding this comment

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

Same undo TODO here

NEWS.md Outdated Show resolved Hide resolved
R/arguments.R Outdated Show resolved Hide resolved
tests/testthat/test-augment.R Outdated Show resolved Hide resolved
tests/testthat/test-linear_reg_quantreg.R Outdated Show resolved Hide resolved
tests/testthat/_snaps/quantile-reg-specs.md Outdated Show resolved Hide resolved
topepo and others added 3 commits September 25, 2024 17:03
Co-authored-by: Hannah Frick <hfrick@users.noreply.github.com>
@topepo topepo merged commit bef131b into quantile-mode Sep 25, 2024
9 checks passed
@topepo topepo deleted the hardhat-quantile-updates branch September 25, 2024 21:28
topepo added a commit that referenced this pull request Oct 11, 2024
* add a quantile regression mode to test with

* update type checkers

* avoid confusion with global all_models object

* add quantile_level argument to set_mode()

* initial data for quantreg

* some initial tests

* fix some issues

* enable quantile prediction

* tests for quantreg

* Quantile predictions output constructor (#1191)

* small change to predict checks

* add vctrs for quantiles and test, refactor *_rq_preds

* revise tests

* Apply some of the suggestions from code review

Co-authored-by: Simon P. Couch <simonpatrickcouch@gmail.com>

* rename tests on suggestion from code review

* export missing funs from vctrs for formatting

* convert errors to snapshot tests

* pass call through input check

* update snapshots for caller_env

* rename to parsnip_quantiles, add format snapshot tests

* Apply suggestions from @topepo

Co-authored-by: Max Kuhn <mxkuhn@gmail.com>

* rename parsnip_quantiles to quantile_pred

* rename parsnip_quantiles to quantile_pred and add vector probability check

* fix: two bugs introduced earlier

* add formatting tests for single quantile

* replace walk with a loop to avoid "Error in map()"

* remove row/col names

* adjust quantile_pred format

* as_tibble method

* updated NEWS file

* add PR number

* small new update

* helper methods

* update docs

* re-enable quantiles prediction for #1203

* update some tests

* no longer needed

* use tibble::new_tibble

* braces

* test as_tibble

* remove print methods

---------

Co-authored-by: Simon P. Couch <simonpatrickcouch@gmail.com>
Co-authored-by: Max Kuhn <mxkuhn@gmail.com>
Co-authored-by: ‘topepo’ <‘mxkuhn@gmail.com’>

* quantile regression updates for new hardhat model (#1207)

* bump hardhat version

* remove parts now in hardhat

* update for new hardhat version

* quantile_levels (plural now)

* news update

* typo

* rename helper function

* run CI on PRs from branches

* forgotten remote

* actions for edited PRs

* plural

* expand branch list

* export function for censored to use

* updated snapshot

* remake snapshot

* Revert "remake snapshot"

This reverts commit 954e326.

* updated snapshot

* Update R/arguments.R

Co-authored-by: Hannah Frick <hfrick@users.noreply.github.com>

* typo

* changes from reviewer feedback

---------

Co-authored-by: ‘topepo’ <‘mxkuhn@gmail.com’>
Co-authored-by: Hannah Frick <hfrick@users.noreply.github.com>

* Change to `quantile` argument to `quantile levels` (#1208)

* quantile -> quantile_levels for #1203

* defer test until censored updates in new PR

* update docs for quantile_levels

* update test

* disable quantile predictions for surv_reg

---------

Co-authored-by: ‘topepo’ <‘mxkuhn@gmail.com’>

* post conflict merge updates

* update news

* version bump and fix typo

* revert GHA branches

* small bug fix

* Apply suggestions from code review

Co-authored-by: Hannah Frick <hfrick@users.noreply.github.com>
Co-authored-by: Emil Hvitfeldt <emil.hvitfeldt@posit.co>

* don't export median

* add call arg

* added documentation on model

* add mode

* convert error to warning

* remove rankdeficient

* added skip

* add deprecated `quantile` arg back in

* remove numeric prediction

---------

Co-authored-by: ‘topepo’ <‘mxkuhn@gmail.com’>
Co-authored-by: Daniel McDonald <dajmcdon@gmail.com>
Co-authored-by: Simon P. Couch <simonpatrickcouch@gmail.com>
Co-authored-by: Hannah Frick <hfrick@users.noreply.github.com>
Co-authored-by: Emil Hvitfeldt <emil.hvitfeldt@posit.co>
Copy link

This pull request has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.

@github-actions github-actions bot locked and limited conversation to collaborators Oct 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants