Open jvpeetz opened 2 years ago
I will note that py-mint has been re-branded as scikit-explain (https://github.com/monte-flora/scikit-explain). New changes to the package will be made there. Several changes have been made to improve the package. If you continue to have this use with scikit-explain, please raise the issue on that github page. If you have any questions, feel free to ask!
Thank you very much for developing this project further. Recently, I took another look at your tutorial notebooks. In this and a second issue I'd like to discuss some suggestions. I used the following versions for the underlying Python modules:
In order to use the current scikit-learn version 1.1 further adaptions would be necessary. To keep up with the version changes of the underlying Python modules can be a hard job, as far as I know. Maybe, it's a good idea to print out the version numbers of the underlying Python modules in the notebooks? This issue is about your notebook
feature_contributions.ipynb
which crashes in thelocal_contributions()
function with the parametermethod='shap'
. I made it working again with two modifications inmain/local_interpret.py
:self._get_feature_contributions()
in line 172 needs the additional argumentshap_kwargs=shap_kwargs
bias = shap_results.base_values[0]
The patch file looks like this:
I didn't dig deep into the Shap package. So maybe, the right correction looks different? Best regards, Jörg.