We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 450237f commit 1f56fffCopy full SHA for 1f56fff
tests/testthat/test-boost_tree_xgboost.R
@@ -12,7 +12,7 @@ extract_xgb_param <- function(x, param) {
12
if (utils::packageVersion("xgboost") > "2.0.0.0") {
13
res <- attr(extract_fit_engine(x), "params")[[param]]
14
} else {
15
- res <- extract_fit_engine(x)[[param]]
+ res <- extract_fit_engine(x)$param[[param]]
16
}
17
res
18
0 commit comments