MarcelRobeer / ContrastiveExplanation

Contrastive Explanation (Foil Trees), developed at TNO/Utrecht University
BSD 3-Clause "New" or "Revised" License
44 stars 6 forks source link

TypeError in the example notebook #5

Closed Naviden closed 4 years ago

Naviden commented 4 years ago

running the example notebook (Contrastive explanation - example usage), the line exp.explain_instance_domain(model.predict_proba, sample) gives the following error:

image
MarcelRobeer commented 4 years ago

Hi Naviden,

I am unable to reproduce this error. Can you provide me with your package versions for LIME, scikit-learn and numpy?

Naviden commented 4 years ago

Hi Marcel, Here are the versions:

Python: 3.7.4 lime==0.2.0.0 scikit-learn==0.22.2.post1 numpy==1.18.4

thanks :)

MarcelRobeer commented 4 years ago

Commit 86f8d53 should fix this bug. I dropped the dependency on LIME.