NorskRegnesentral / shapr

Explaining the output of machine learning models with more accurately estimated Shapley values
https://norskregnesentral.github.io/shapr/
Other
147 stars 34 forks source link

Fix typo/bug in `xgboost_model.R` #380

Closed LHBO closed 8 months ago

LHBO commented 8 months ago

In this PR, we fix the code such that we check that the xgboost namespace is available.

In the previous version, shapr stoped running if !requireNamespace("stat", quietly = TRUE), but this has been fixed to !requireNamespace("xgboost", quietly = TRUE). That is, we now check for the right package.