Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue in running project #7

Open
HeyItsBethany3 opened this issue Mar 5, 2021 · 9 comments
Open

Issue in running project #7

HeyItsBethany3 opened this issue Mar 5, 2021 · 9 comments

Comments

@HeyItsBethany3
Copy link

Hi, I am trying to use this library and have followed the README but I'm getting this error when I use the command:
python batchTest.py -d credit -m mlp -n one_norm -a MACE_eps_1e-3 -b 0 -s 1
I've attached the error below.
Screenshot 2021-03-05 at 17 04 45

Do you have any advice to solve this? Do I need to load the data and model in some way?
Also, does your MACE (or MINT) algorithm work well for gradient boosting models?
Thanks so much.

@amirhk
Copy link
Collaborator

amirhk commented Mar 7, 2021 via email

@HeyItsBethany3
Copy link
Author

Hi Amir,
Thanks for this. Would you mind explaining a little more how I could adapt the repo to add a GBM model? I'm struggling to understand how 'modelConversion.py' relates to the other files. It looks like the main logic in modelConversion.py is in the formula functions, what different logic would I need for a GBM model?

@amirhk
Copy link
Collaborator

amirhk commented Mar 13, 2021 via email

@HeyItsBethany3
Copy link
Author

Hi Amirhk,

Thanks for this, this is really helpful!

I was experiencing the issue in #8, so I've followed the instructions explained in there.

I installed Python-MIP using pip install mip. Then I cloned the repo and checked out the commit:
git clone "https://github.com/ustunb/actionable-recourse.git"
cd actionable-recourse
git checkout 9387e6c

I added the directory to my path: (actionable-recourse is in a directory called recourse)
echo 'export PATH="$PATH:/home/recourse"'

Was this the correct approach?

I am now getting the error:
File "batchTest.py", line 127 raise Exception(f'{approach_string} not recognized as a valid approach_string.')

When I run python batchTest.py -a AR or python batchTest.py -d credit -m forest -n one_norm -a MACE_eps_1e-5 -b 0 -s 1.

I was also getting the error 'actionableRecourse approach only works with larger.' from line 335 in batchTest.py. What does this mean?

Thanks so much for all your support.

@HeyItsBethany3
Copy link
Author

I am now running python batchTest.py -d credit -m forest -n one_norm -a MACE_eps_1e-5 -b 0 -s 1 within the virtual environment instead, but it is taking a very long time. How long does it usually take for the simulations to run?

@amirhk
Copy link
Collaborator

amirhk commented Mar 19, 2021 via email

@HeyItsBethany3
Copy link
Author

Thanks. I don't think it's running properly yet.

I've run python batchTest.py -d adult -m lr -n zero_norm -a AR -b 0 -s 1 and am getting the error
return generateARExplanations.genExp( NameError: name 'generateARExplanations' is not defined

@HeyItsBethany3
Copy link
Author

It seemed to finally work when I increased the CPU and RAM, running python batchTest.py -d credit -m lr -n one_norm -a MACE_eps_1e-2 -b 0 -s 1. I think if I avoid using actionable recourse it should all work :)

However, I can't seem to find anything in the _experiments folder? Where should I look for the counterfactual values?

Thanks so much for your help :)

@giandos200
Copy link

Hi @amirhk , I would like to use one of the CF explanation methodologies in the Repo. I'm using MACE, but I see that the CF generation is model-dependent. Exist in the repo a CF generation methodology (AR, MINT) that is model agnostic or is there a way to generate an agnostic "getModelFormula" in MACE?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants