Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add AdaBoostClassifier #1219

Closed
wants to merge 1 commit into from
Closed

add AdaBoostClassifier #1219

wants to merge 1 commit into from

Conversation

tk27182
Copy link

@tk27182 tk27182 commented May 20, 2020

I had issues using AdaBoostClassifier with your package, and came across #335 and this Stack Overflow question and answer. It seemed like the OP never added a pull request, so I figured I'd add it with the updated code that uses safe_isinstance instead.

Edits are in lines 598-610 in the shap/explainers/tree.py file.

@slundberg
Copy link
Collaborator

Thanks!! Could you also add a quick sum check to make sure there are no bugs now or in the future? See this example for the random forest: https://github.com/slundberg/shap/blob/fc30c661339e89e0132f5f89e5385e3681090e1f/tests/explainers/test_tree.py#L605-L619

diarmaidfinnerty added a commit to diarmaidfinnerty/shap that referenced this pull request Oct 24, 2020
This commit implements the AdaBoostClassifier to the
shap/explainers/_tree.py. I have also added the corresponding
test_sum_match function in tests/explainers/test_tree.py

This is an extension of a previous pull request shap#1219 which
was awaiting the test in test_tree.py.
Copy link

We appreciate your contribution! This Pull Request has been inactive for two years, so it's been automatically marked as 'stale'.

Please leave a comment if you would still like the PR to remain open, and the 'stale' label will be removed.

Otherwise, if there is no activity in the next 90 days the PR will be closed.

@github-actions github-actions bot added the stale Indicates that there has been no recent activity on an issue label Jan 11, 2024
Copy link

This PR has been automatically closed due to a lack of recent activity.

We welcome your contributions! If your patch is still relevant, please don't hesitate to open a new PR.

@github-actions github-actions bot closed this Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Indicates that there has been no recent activity on an issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants