-
Notifications
You must be signed in to change notification settings - Fork 0
test messaging about missing extensions #53
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
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
3a6033d
tests for tidymodels/parsnip#793
simonpcouch cb02c85
add testing for `decision_tree()`
simonpcouch 61a1f7d
add `decision_tree` tests, update snaps
simonpcouch 2000f65
add tests for old/external objects
simonpcouch 225ea1c
add modeltime to Suggests
simonpcouch 3dfd3e3
Merge branch 'main' into parsnip-extension-messaging
simonpcouch 327d9f4
add pkgs for dev checks
simonpcouch 293f2de
update snaps
simonpcouch e636c59
reomve duplicate Suggests entry
simonpcouch 5e9ddee
merge upstream
simonpcouch fa22a96
use testthat config to test extension messaging first
simonpcouch File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,304 @@ | ||
# messaging with unknown implementation (bag tree, tidymodels/parsnip#793) | ||
|
||
Code | ||
bag_tree() %>% set_engine("rpart") %>% set_mode("regression") | ||
Message <rlang_message> | ||
! parsnip could not locate an implementation for `bag_tree` regression model specifications using the `rpart` engine. | ||
i The parsnip extension package baguette implements support for this specification. | ||
i Please install (if needed) and load to continue. | ||
Output | ||
Bagged Decision Tree Model Specification (regression) | ||
|
||
Main Arguments: | ||
cost_complexity = 0 | ||
min_n = 2 | ||
|
||
Computational engine: rpart | ||
|
||
|
||
--- | ||
|
||
Code | ||
bag_tree() %>% set_mode("censored regression") | ||
Message <rlang_message> | ||
! parsnip could not locate an implementation for `bag_tree` censored regression model specifications. | ||
i The parsnip extension package censored implements support for this specification. | ||
i Please install (if needed) and load to continue. | ||
Output | ||
Bagged Decision Tree Model Specification (censored regression) | ||
|
||
Main Arguments: | ||
cost_complexity = 0 | ||
min_n = 2 | ||
|
||
Computational engine: rpart | ||
|
||
|
||
--- | ||
|
||
Code | ||
bag_tree() | ||
Message <rlang_message> | ||
! parsnip could not locate an implementation for `bag_tree` model specifications. | ||
i The parsnip extension packages censored and baguette implement support for this specification. | ||
i Please install (if needed) and load to continue. | ||
Output | ||
Bagged Decision Tree Model Specification (unknown mode) | ||
|
||
Main Arguments: | ||
cost_complexity = 0 | ||
min_n = 2 | ||
|
||
Computational engine: rpart | ||
|
||
|
||
--- | ||
|
||
Code | ||
bag_tree() %>% set_engine("rpart") | ||
Message <rlang_message> | ||
! parsnip could not locate an implementation for `bag_tree` model specifications using the `rpart` engine. | ||
i The parsnip extension packages censored and baguette implement support for this specification. | ||
i Please install (if needed) and load to continue. | ||
Output | ||
Bagged Decision Tree Model Specification (unknown mode) | ||
|
||
Main Arguments: | ||
cost_complexity = 0 | ||
min_n = 2 | ||
|
||
Computational engine: rpart | ||
|
||
|
||
--- | ||
|
||
Code | ||
bag_tree() %>% set_mode("censored regression") %>% set_engine("rpart") | ||
Output | ||
Bagged Decision Tree Model Specification (censored regression) | ||
|
||
Main Arguments: | ||
cost_complexity = 0 | ||
min_n = 2 | ||
|
||
Computational engine: rpart | ||
|
||
|
||
--- | ||
|
||
Code | ||
bag_tree() %>% set_engine("rpart") | ||
Output | ||
Bagged Decision Tree Model Specification (unknown mode) | ||
|
||
Main Arguments: | ||
cost_complexity = 0 | ||
min_n = 2 | ||
|
||
Computational engine: rpart | ||
|
||
|
||
--- | ||
|
||
Code | ||
bag_tree() %>% set_mode("regression") %>% set_engine("rpart") | ||
Message <rlang_message> | ||
! parsnip could not locate an implementation for `bag_tree` regression model specifications using the `rpart` engine. | ||
i The parsnip extension package baguette implements support for this specification. | ||
i Please install (if needed) and load to continue. | ||
Output | ||
Bagged Decision Tree Model Specification (regression) | ||
|
||
Main Arguments: | ||
cost_complexity = 0 | ||
min_n = 2 | ||
|
||
Computational engine: rpart | ||
|
||
|
||
--- | ||
|
||
Code | ||
bag_tree() %>% set_mode("classification") %>% set_engine("C5.0") | ||
Message <rlang_message> | ||
! parsnip could not locate an implementation for `bag_tree` classification model specifications using the `C5.0` engine. | ||
i The parsnip extension package baguette implements support for this specification. | ||
i Please install (if needed) and load to continue. | ||
Output | ||
Bagged Decision Tree Model Specification (classification) | ||
|
||
Main Arguments: | ||
cost_complexity = 0 | ||
min_n = 2 | ||
|
||
Computational engine: C5.0 | ||
|
||
|
||
--- | ||
|
||
Code | ||
bag_tree() %>% set_engine("C5.0") | ||
Output | ||
Bagged Decision Tree Model Specification (unknown mode) | ||
|
||
Main Arguments: | ||
cost_complexity = 0 | ||
min_n = 2 | ||
|
||
Computational engine: C5.0 | ||
|
||
|
||
# messaging with unknown implementation (decision tree, tidymodels/parsnip#793) | ||
|
||
Code | ||
decision_tree() | ||
Output | ||
Decision Tree Model Specification (unknown mode) | ||
|
||
Computational engine: rpart | ||
|
||
|
||
--- | ||
|
||
Code | ||
decision_tree() %>% set_mode("censored regression") | ||
Output | ||
Decision Tree Model Specification (censored regression) | ||
|
||
Computational engine: rpart | ||
|
||
|
||
--- | ||
|
||
Code | ||
decision_tree() %>% set_engine("partykit") | ||
Output | ||
Decision Tree Model Specification (unknown mode) | ||
|
||
Computational engine: partykit | ||
|
||
|
||
--- | ||
|
||
Code | ||
decision_tree() %>% set_engine("partykit") %>% set_mode("regression") | ||
Message <rlang_message> | ||
! parsnip could not locate an implementation for `decision_tree` regression model specifications using the `partykit` engine. | ||
i The parsnip extension package bonsai implements support for this specification. | ||
i Please install (if needed) and load to continue. | ||
Output | ||
Decision Tree Model Specification (regression) | ||
|
||
Computational engine: partykit | ||
|
||
|
||
--- | ||
|
||
Code | ||
decision_tree() %>% set_mode("censored regression") %>% set_engine("rpart") | ||
Output | ||
Decision Tree Model Specification (censored regression) | ||
|
||
Computational engine: rpart | ||
|
||
|
||
--- | ||
|
||
Code | ||
decision_tree() %>% set_engine("partykit") | ||
Output | ||
Decision Tree Model Specification (unknown mode) | ||
|
||
Computational engine: partykit | ||
|
||
|
||
--- | ||
|
||
Code | ||
decision_tree() %>% set_mode("regression") %>% set_engine("partykit") | ||
Message <rlang_message> | ||
! parsnip could not locate an implementation for `decision_tree` regression model specifications using the `partykit` engine. | ||
i The parsnip extension package bonsai implements support for this specification. | ||
i Please install (if needed) and load to continue. | ||
Output | ||
Decision Tree Model Specification (regression) | ||
|
||
Computational engine: partykit | ||
|
||
|
||
--- | ||
|
||
Code | ||
decision_tree() %>% set_mode("regression") %>% set_engine("partykit") | ||
Output | ||
Decision Tree Model Specification (regression) | ||
|
||
Computational engine: partykit | ||
|
||
|
||
# missing implementation checks prompt conservatively with old objects (bag_tree) | ||
|
||
Code | ||
bt | ||
Output | ||
Bagged Decision Tree Model Specification (regression) | ||
|
||
Main Arguments: | ||
cost_complexity = 0 | ||
min_n = 2 | ||
|
||
Computational engine: rpart | ||
|
||
|
||
--- | ||
|
||
Code | ||
bt | ||
Output | ||
Bagged Decision Tree Model Specification (regression) | ||
|
||
Main Arguments: | ||
cost_complexity = 0 | ||
min_n = 2 | ||
|
||
Computational engine: rpart | ||
|
||
|
||
# missing implementation checks prompt conservatively with old objects (decision_tree) | ||
|
||
Code | ||
dt | ||
Output | ||
Decision Tree Model Specification (unknown mode) | ||
|
||
Computational engine: rpart | ||
|
||
|
||
--- | ||
|
||
Code | ||
dt_censored | ||
Output | ||
Decision Tree Model Specification (censored regression) | ||
|
||
Computational engine: rpart | ||
|
||
|
||
--- | ||
|
||
Code | ||
dt_censored | ||
Output | ||
Decision Tree Model Specification (censored regression) | ||
|
||
Computational engine: rpart | ||
|
||
|
||
# missing implementation checks prompt conservatively with external objects (arima_boost) | ||
|
||
Code | ||
ab | ||
Output | ||
Time Series Model w/ XGBoost Error Specification (regression) | ||
|
||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.