xgb.fi() function detecting interactions and working with xgboost returns exception
问题 xgb.fi() is a new function that works with xgboost to detect interactions between variables. The documentation can be found here: https://rdrr.io/github/RSimran/RXGBfi/man/xgb.fi.html This is an important subject and I tried to test the function but I run into an exception. See below for a reproducible example: library(data.table) library(xgboost) library(RXGBfi) data(mtcars) X = as.matrix(mtcars[, -9]) Y = mtcars$am dtrain = xgb.DMatrix(data = X, label = Y) model = xgb.train(data = dtrain,