Skip to content

Implement add_case_weights() and friends#118

Merged
DavisVaughan merged 22 commits intomainfrom
feature/case-weights
Apr 25, 2022
Merged

Implement add_case_weights() and friends#118
DavisVaughan merged 22 commits intomainfrom
feature/case-weights

Conversation

@DavisVaughan
Copy link
Member

@DavisVaughan DavisVaughan commented Jul 30, 2021

  • Pass through the case weights column to parsnip when it supports them

@DavisVaughan

This comment was marked as resolved.

DavisVaughan added a commit that referenced this pull request Apr 22, 2022
Since the recipe can potentially change the number of rows, meaning that our retained case weights vector could get out of sync. Handles the issue noted in #118 (comment)
With suboptimal rlang call, but not sure we can improve that much right now
This is slightly better for type stability
Rather than overwriting the `$mold` slot directly. This allows the internal validation bits to actually run.
Skipping a prediction time test for case weights + recipes for now. Currently hardhat requires that ALL roles are present at prediction time, rather than just outcome/predictor roles, which will be a better default.
Since the recipe can potentially change the number of rows, meaning that our retained case weights vector could get out of sync. Handles the issue noted in #118 (comment)
@DavisVaughan DavisVaughan force-pushed the feature/case-weights branch from d4578f8 to e7672ef Compare April 22, 2022 15:02
@DavisVaughan DavisVaughan merged commit 9a9e231 into main Apr 25, 2022
@DavisVaughan DavisVaughan deleted the feature/case-weights branch April 25, 2022 20:36
@github-actions
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 May 10, 2022
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.

1 participant