-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Xgboost sklearn model parameters that should be passed to xgboos…
…t.DMatrix (shap#3314) * Make sure to save xgboost sklearn class parameters for future use * Propogate xgboost sklearn params to the DMatrix if created * Add test for testing the propogation of dmatrix kwargs * Refactor according to PR comments * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Remove typehint that was breaking tests + add docstring * Fix unittest according to PR comments * Make code more xgboost specific as requested in PR review * Safeguard attribute retrieval as requested out by @connortann --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
3ac66fb
commit 3dad62b
Showing
2 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters