Open leetabix opened 1 year ago
@leetabix I think you should propose a pull request (PR) with the changes you've already made: it at least will be possible to install the working version of the package from your PR.
This commit addresses this as well: https://github.com/eli5-org/eli5/pull/31/commits/840695d869e47b8e6cc05baca428d24881113fb6
@frosty24, is https://github.com/eli5-org/eli5/commit/840695d869e47b8e6cc05baca428d24881113fb6 merged to the main branch of this repo? I'm a bit confused as GitHub informs:
I picked this commit from the following open PR in this repo: https://github.com/eli5-org/eli5/pull/31
Hi all! I ran into this error as well. I ended up installing scikit-learn==1.2.2
and then was able to import eli5
successfully.
Is it possible for me to do something about this? I've stopped using eli5 in my project because I had to update scikit-learn.
If nobody answers, you may use SHAP values as an alternative: https://github.com/shap/shap That project is currently alive.
Slight correction to the above.
Instead of replacing
@if_delegate_has_method(delegate='wrapped_estimator_')
with:
@available_if(_estimator_has('wrapped_estimator_'))
it should be replaced with the name of the function being checked for:
@available_if(_estimator_has('predict_proba'))
(or whatever the relevant function is)
based on:
https://github.com/scikit-learn/scikit-learn/issues/20506
This is implemented in my fork here
Any update on this?
I believe it's safe to say this project is dead. Some fork on this project would be great.
When creating a virtual environment (using venv) and pip installing eli5 and jupyter lab, I'm unable to import eli5 as I receive the following error in my notebook:
The issue appears to be due to scikit-learn depreciating the if_delegate_has_method decorator (in \Lib\site-packages\sklearn\utils\metaestimators.py) and replacing it with another decorator called available_if.
I've made the following updates to \Lib\site-packages\eli5\sklearn\permutation_importance.py and I'm now able to import the eli5 library:
with
Please let me know if you'd like me to propose the above update for merge.
Thanks, James