xgb.get.num.boosted.rounds: Get number of boosting in a fitted booster

View source: R/xgb.Booster.R

xgb.get.num.boosted.roundsR Documentation

Get number of boosting in a fitted booster

Description

Get number of boosting in a fitted booster

Usage

xgb.get.num.boosted.rounds(model)

## S3 method for class 'xgb.Booster'
length(x)

Arguments

model, x

A fitted xgb.Booster model.

Details

Note that setting booster parameters related to training continuation / updates through xgb.model.parameters<-() will reset the number of rounds to zero.

Value

The number of rounds saved in the model as an integer.


xgboost documentation built on Dec. 3, 2025, 5:06 p.m.