interpretml / DiCE

Generate Diverse Counterfactual Explanations for any machine learning model.
https://interpretml.github.io/DiCE/
MIT License
1.37k stars 188 forks source link

Can't import dice_ml because of raiutils lib #432

Open luana-garcia opened 8 months ago

luana-garcia commented 8 months ago

Hello! I'm trying to use the dice-ml package and getting error of module not found.

Machine specifications:

(1) When I try to run pip install dice-ml I don't get any error, but when I import the dice_ml package in python code I get ModuleNotFoundError: No module named 'dice_ml'.

(2) When I try to clone the repository and run !pip install -e . I don't get any error either, but when I import the dice_ml package in python code I get ModuleNotFoundError: No module named 'raiutils'.

But the packages are installed when we list pip packages. Searching about raiutils, it seems like there has been some changes in this package, maybe that's the root of the problem. Anyway I can't even try the dice_ml library without importing it, so please help me discover the problem here.

Follow the code used attached: Execução_DiCE.zip

gaugup commented 8 months ago

@luana-garcia, how are you trying to import dice-ml? Could you share the code?

luana-garcia commented 8 months ago

@luana-garcia, how are you trying to import dice-ml? Could you share the code?

@gaugup I've put a zip with the jupyter notebook with the codes and outputs. I'll print some images here to help visualize.

image image image image image image