interpretml / FasterRisk

Create sparse and accurate risk scoring systems!
BSD 3-Clause "New" or "Revised" License
31 stars 4 forks source link

sample data download not working #1

Closed julian-berger closed 1 year ago

julian-berger commented 1 year ago

Is the google drive down?

Using the exact code provided in example.ipynb I get a

FileNotFoundError: [Errno 2] No such file or directory: '../tests/adult_train_data.csv'

image
jiachangliu commented 1 year ago

Hi @julian-berger , thanks for raising this issue up. I believe the error was due to the fact that you used the jupyter notebook alone instead of doing git clone the entire GitHub repo.

I have fixed this issue by add the following lines into the notebook:

from pathlib import Path
Path("../tests").mkdir(parents=True, exist_ok=True) # create the "../tests" directory if it doesn't exist

The notebook has been updated on the GitHub repo. Please download the latest jupyter notebook and let me know if this problem goes away.

P.S. I have updated the package on PyPI. The latest version is 0.1.6. You can pip install the latest version by using the following command:

python -m pip install fasterrisk==0.1.6
jiachangliu commented 1 year ago

Hi @julian-berger, I'm closing this issue now as this seems to be solved. Feel free to open another issue if you encounter other problems!