-
Notifications
You must be signed in to change notification settings - Fork 14
Changes for new version of xgboost #30
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
9 commits
Select commit
Hold shift + click to select a range
3c21bfc
parameter conversion
topepo 6660380
modifications for new xgboost version
topepo 1e40d74
archive fit using previous xrf and xgb packages
topepo 9b3d03a
version bump
topepo 0493bc8
version note + changes to summary method
topepo c2f87f9
temporary changes for GHA and CI
topepo aeb1a18
forgotten `shell: Rscript {0}`
topepo 22607b7
xgboost depends on R >= 4.3.0
topepo 22868bd
xgboost version updates
topepo 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
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,13 @@ | ||
| # pak::pak(c("xrf", "xgboost"), ask = FALSE) | ||
| library(xrf) | ||
| library(xgboost) | ||
| # xgboost_1.7.11.1 xrf_0.2.2 | ||
|
|
||
| set.seed(832) | ||
| xgb_1_7_11_fit <- xrf(mpg ~ ., data = mtcars[1:28, ], family = "gaussian") | ||
| xgb_1_7_11_pred <- predict(xgb_1_7_11_fit, mtcars[29:32, ]) | ||
| save(xgb_1_7_11_fit, xgb_1_7_11_pred, file = "inst/xgb_1_7_11.RData") | ||
|
|
||
| if (!interactive()) { | ||
| q("no") | ||
| } |
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,11 @@ | ||
| # In November 2025, the new version of xgboost has api changes | ||
| # that are breaking changes. See https://github.com/dmlc/xgboost/issues/11430 | ||
| # This file uses the current CRAN versions to ensure that prediction | ||
| # works in updated versions of xrf and xgboost. | ||
|
|
||
| test_that('prediction works on xgboost versions < 3.0', { | ||
|
holub008 marked this conversation as resolved.
|
||
| load(system.file("xgb_1_7_11.RData", package = "xrf"), verbose = FALSE) | ||
| xgb_3_1_2_1_pred <- predict(xgb_1_7_11_fit, mtcars[29:32, ]) | ||
|
|
||
| expect_equal(xgb_1_7_11_pred, xgb_3_1_2_1_pred) | ||
| }) | ||
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.