NorskRegnesentral / shapr

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

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

Closed LHBO closed 3 months ago

LHBO commented 3 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.