fairnessforensics / wiggum

simpson's paradox inspired fairness forensics
https://fairnessforensics.github.io/wiggum/
MIT License
5 stars 3 forks source link

Create a GitHub Action #221

Open Shine226 opened 1 year ago

Shine226 commented 1 year ago

Running command: python3 run.py Main branch: normal examples from Wiggum paper Interactive_lasso: gerrymandering examples and normal examples from Wiggum paper

cegme commented 1 year ago

@Shine226 I hosted the file at http://34.170.114.81:5000 The application seems to only work with Python 3.8. Can you test out the website and let me know what changes should be added?

Shine226 commented 1 year ago

I tried the link, it doesn't work. I guess is some library is out of data. But I can't tell which one is.

Shine226 commented 1 year ago

Do you see any error message from your end?

cegme commented 1 year ago

What URL are you using? I just get bad request errors:

image
Shine226 commented 1 year ago

I use http://127.0.0.1:5000.

Shine226 commented 1 year ago

I guess maybe you need config on some port.

cegme commented 1 year ago

Port is configured fine. If you look, it is getting requests. But the requests look garbled. Is there a directory like /wiggum?

Shine226 commented 1 year ago

No, I don't think so. The run.py file is under root.

cegme commented 1 year ago

@Shine226 it is working now. I had to get rid of the server line in the file wiggum_app/config.py. Is this needed? Also, what is the best way to use data sets for the demo?

Shine226 commented 1 year ago

Wow, glad to hear that. If the application works, I guess it is ok to remove that line.

cegme commented 1 year ago

@Shine226 Do you have a way to load or have default data sets?

Shine226 commented 1 year ago

Which branch are you using now?

cegme commented 1 year ago

I am using the main branch. But I can create a new port and host a new one for each demo.

Shine226 commented 1 year ago

If you are using the Main branch, you can load auto2.csv. You will need to config the variables. For example, all continuous variable to dependent/independent and all categorical variables to splitby, then using the pearson correlation type.

Shine226 commented 1 year ago

Second option for datasets in Main branch is iris_test folder, then you can use the select files button to upload the folder. In this case, no need to annotate variables.

Shine226 commented 1 year ago

I will suggest to use 'interactive_lasso' branch, then you will find data folders. Just load the folders, no need to annotate variables.

cegme commented 1 year ago

Remember, this is on the server. The person who opens the website would need to upload their own file. Is there a way they could get it? Maybe a selection page on the site.

Shine226 commented 1 year ago

Do you have a new link working now?

cegme commented 1 year ago

No same link as above. I haven't made any changes yet. Let me know if you want me to check out the latest and restart the code or if you uploaded a dataset.

Shine226 commented 1 year ago

I tried this link (http://34.170.114.81:5000), the browser shows 'Safari can't connect to server'.

cegme commented 1 year ago

(I disconnected it)