Open zk117 opened 6 years ago
Having the same issue with xgboost 0.6.4.6
As the error states, 'n_first_tree' has been deprecated by 'trees'. A simple input variable name substitution will resolve this discrepancy.
See here: https://github.com/AppliedDataSciencePartners/xgboostExplainer/blob/master/R/buildExplainer.R#L61
I also faced the same problem when I was using the Github version. To overcome this, I download the stable version (0.6.4.1) on CRAN and it worked without any problems.
I think the issue is to do with how the example code is written. It references a property of the xgboost model object best_ntreelimit
which is only available when the early_stopping_rounds
argument has been set in the call to xgboost()
.
I faced the same problem when upgrading to xgboost version (0.71.1). Downgrading again to 0.6.4.1 (as LegiSam describes above) does the trick.
Creating the trees of the xgboost model...Error in parse(text = paste(new_par, "<-", pars[[pars_par]])) :