[R] Remove parameters and attributes related to ntree and rebase iterationrange (#9935)

This commit is contained in:
david-cortes
2024-01-20 17:56:57 +01:00
committed by GitHub
parent 60b9d2eeb9
commit c5d0608057
14 changed files with 112 additions and 98 deletions

View File

@@ -15,7 +15,7 @@ cat('start testing prediction from first n trees\n')
labels <- getinfo(dtest, 'label')
### predict using first 1 tree
ypred1 <- predict(bst, dtest, ntreelimit = 1)
ypred1 <- predict(bst, dtest, iterationrange = c(1, 1))
# by default, we predict using all the trees
ypred2 <- predict(bst, dtest)