TeamHG-Memex / eli5

A library for debugging/inspecting machine learning classifiers and explaining their predictions
http://eli5.readthedocs.io
MIT License
2.76k stars 334 forks source link

Added support for Jinja2 3.1.2 and scikit-learn 1.0.2 #418

Closed dvorst closed 1 year ago

dvorst commented 2 years ago

When using Jinja2 3.1.2 and scikit-learn 1.0.2, the following errors occurred:

The changes in 'html.py', 'permutation_importance.py' and 'transform.py' are such that these errors are resolved while maintaining support for older versions of jinja2 and scikit-learn.

'test_import.py' is used to test importing eli5 for both newer and older dependency versions.

Also see: https://github.com/TeamHG-Memex/eli5/issues/417

Hellisotherpeople commented 2 years ago

Can we get a merge ASAP on this? ELI5 is now broken for most use-cases since you know, most people are running this on sklearn models...

Also breaks my HF space: https://huggingface.co/spaces/Hellisotherpeople/Interpretable_Text_Classification_And_Clustering

lopuhin commented 2 years ago

@Hellisotherpeople this was merged in https://github.com/eli5-org/eli5/pull/19 and released in 0.12, thanks for a reminder