Moffran / calibrated_explanations

Repository for the explanation method Calibrated Explanations (CE)
BSD 3-Clause "New" or "Revised" License
39 stars 5 forks source link

Counterfactual categorical rules repeated #29

Closed tuvelofstrom closed 4 months ago

tuvelofstrom commented 4 months ago

Describe the bug When running the Mondrian_Fairness.ipynb, several counterfactual plots repeat the same alternative rule multiple times.

To Reproduce Steps to reproduce the behavior: Run e..g. the COMPAS part in the Mondrian_Fairness.ipynb and look at the counterfactual explanations. It may look like this where "Race = Other" is repeated: image

Expected behavior I would have expected different rules to be shown.

Version used v0.3.0

tuvelofstrom commented 4 months ago

This error was caused by a bug with the discretizers. It was fixed in eea5271621105c17ff35fd878f7ebb16a12320ae. With v0.3.1, it is solved.