PAIR-code / lit

The Learning Interpretability Tool: Interactively analyze ML models to understand their behavior in an extensible and framework agnostic interface.
https://pair-code.github.io/lit
Apache License 2.0
3.45k stars 351 forks source link

Relax shap version #1471

Closed hentt30 closed 3 months ago

hentt30 commented 3 months ago

Is it possible to relax the shap version requirement to >=0.42.0? I am using LIT together with powershap 0.0.11 and I'm experiencing dependency conflicts.

Steps to Reproduce

Run the following command:

pip install git+https://github.com/PAIR-code/lit.git@dev powershap==0.0.11

Error Message

ERROR: Cannot install lit-nlp==1.1.1 and powershap==0.0.11 because these package versions have conflicting dependencies.

The conflict is caused by:
    powershap 0.0.11 depends on shap<0.46.0 and >=0.45.0
    lit-nlp 1.1.1 depends on shap==0.42.0
RyanMullins commented 3 months ago

Looks like the tests pass in https://github.com/PAIR-code/lit/pull/1472 so yes I think we can relax this. Will leave this issue open until you verify the fix works for you.

RyanMullins commented 3 months ago

FYI #1472 was merged. Let me know if there's anything else I can do to make this work for you.

hentt30 commented 3 months ago

Tks, I'll try it out in a while and will let you know how it went.

hentt30 commented 3 months ago

It worked, Thank you!