Skip to contents

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.

Value

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

Details

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