I'm trying to explain a regression that I've done with the package "xgboost", with LIME, but it doesn't work and I havn't found any example of such code on the Internet. Do you know if that's even possible? Would you have a simple example that is working? I can make it work when it's a classification issue, but not with regression.
I have this error : "Error in xgboost::xgb.DMatrix(as.matrix(newdata)) :'data' has class 'character' and length 120000. 'data' accepts either a numeric matrix or a single filename.".
I think that the first argument in the function "explain" is not right but I don't understand what kind of data I should put.
Here is my code, train and test are data.table object and X is the variable to explain :
Hi!
I'm trying to explain a regression that I've done with the package "xgboost", with LIME, but it doesn't work and I havn't found any example of such code on the Internet. Do you know if that's even possible? Would you have a simple example that is working? I can make it work when it's a classification issue, but not with regression.
I have this error : "Error in xgboost::xgb.DMatrix(as.matrix(newdata)) :'data' has class 'character' and length 120000. 'data' accepts either a numeric matrix or a single filename.". I think that the first argument in the function "explain" is not right but I don't understand what kind of data I should put.
Here is my code, train and test are data.table object and X is the variable to explain :
Thank you!