Select one tree by its one-based index. Marker area represents cover, with a minimum radius for interaction. Internal nodes report split gain and the branch for missing values. Leaves report their contribution to the prediction margin. Supports tree boosters with numeric splits.
Usage
# S3 method for class 'xgb.Booster'
hchart(object, ..., tree = 1L)Examples
d <- xgboost::xgb.DMatrix(as.matrix(iris[1:4]), label = iris$Petal.Width)
fit <- xgboost::xgb.train(
list(objective = "reg:squarederror", max_depth = 2L, nthread = 1L),
d, nrounds = 3L, verbose = 0
)
hchart(fit, tree = 2)
