Skip to content

Commit 1f56fff

Browse files
committed
fix type
1 parent 450237f commit 1f56fff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/testthat/test-boost_tree_xgboost.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ extract_xgb_param <- function(x, param) {
1212
if (utils::packageVersion("xgboost") > "2.0.0.0") {
1313
res <- attr(extract_fit_engine(x), "params")[[param]]
1414
} else {
15-
res <- extract_fit_engine(x)[[param]]
15+
res <- extract_fit_engine(x)$param[[param]]
1616
}
1717
res
1818
}

0 commit comments

Comments
 (0)