-
Notifications
You must be signed in to change notification settings - Fork 13
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
Update tutorial notebooks with direct data and model downloads (when possible) #171
Comments
Perhaps we can use the pooch library to simplify this |
@loostrum, do you mind if I make (in the ever growing #776) the RFB model being downloaded under |
done by faf3c4f |
That won't work if dianna is installed system-wide though, what is the objection to downloading it to the local folder? |
What do you mean by "installed system-wide"? Why wouldn't it work, if we still use the |
Effectively I mean that it fails when the user that installed dianna is not the same user that runs the notebooks. As a concrete example we pre-installed dianna at the AI4S2S workshop. The participants would not have write acces to the root_dir. |
|
For the overview notebook, it's been addressed in #792 |
The hash is a hash of the file, e.g. a MD5 of SHA256 hash. It's probably easiest to get with pooch itself, see this part of the documentation of
|
@elboyran Nice that it's fixed in the overview notebook! Shall I pick it up for the other notebooks? |
@loostrum , please, go ahead! |
See Leon's nice tutorial on RFB case #707 on how to download directly from Zenodo. See also the text in italics below.
tutorials
├── README.md
├── conversion_onnx
│ ├── ...
├── overview.ipynb
└── explainers
├── KernelSHAP
│ ├── kernelshap_geometric_shapes.ipynb
│ ├── kernelshap_mnist.ipynb
│ ├── kernelshap_tabular_penguin.ipynb
│ └── kernelshap_tabular_weather.ipynb
├── LIME
│ ├── lime_images.ipynb
│ ├── lime_tabular_penguin.ipynb
│ ├── lime_tabular_weather.ipynb
│ ├── lime_text.ipynb
│ ├── lime_timeseries_coffee.ipynb
│ └── lime_timeseries_weather.ipynb
└── RISE
├── rise_imagenet.ipynb
├── rise_mnist.ipynb
├── rise_text.ipynb
└── rise_timeseries_weather.ipynb
└── rise_timeseries_frb.ipynb (already model downloaded, not by pooch)
Zenodo links per tutorial:
Generic
binary MNIST onnx modelThe model variant used in tutorial is with TF int he name, otherwise the one from zenodo gives an TF error...KernelSHAP
LIME
RISE
rise_imagenet.ipynb: example image is local | model loaded from TFThe text was updated successfully, but these errors were encountered: