-
Notifications
You must be signed in to change notification settings - Fork 6
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
Error report during model training and explanation #7
Comments
Hi Xuan, Please accept our apologies. I introduced some modifications to the code a while ago and just pushed the code recently during the reviewing process of the manuscript. While I try to update the code to PyPI, you can install the updated code via I have also introduced scripts to train, test and interpret ExplaiNN models which are provided in the Sorry for the inconveniences. |
Hi @oriolfornes, Thanks for your reply. I've re-installed the updated version and followed the tutorial (slide.pdf) to learn the process of Explainn. When I tested example 1 (you provided in the slide), I have stuck again before the model training( page 14 of the slide).
Thanks in advance! |
Hi, my apologies for the long wait. A couple of things:
Let me know if you encounter any additional problems! Thanks for your patience! |
Hi @fransilvion,
Thanks for the useful tool.
I've installed explainn 0.1.5 by pip install explainn==0.1.5. and followed the github instruction to train model on test set (you provided).
for model training, I ran into two errors when I call train.train_explainn() function.
Error1: patience parameter isn't available.
Error2: checkpoint can not be set as 0.
I gave it a go without using these two parameters, which works.
When I did the interpretation, I tried to run the code below.
filter_size =19
pwms = interpretation.get_pwms_explainn(activations, data_inp, filter_size)
But I ran into the below error.
TypeError Traceback (most recent call last)
in
28 activations = interpretation.get_explainn_unit_activations(data_loader, model, device)
29 filter_size = 19
---> 30 pwms = interpretation.get_pwms_explainn(activations, data_inp, filter_size)
31 meme_file = "/g/data/zk16/xzhang/ExplaiNN/explainn_filters.meme"
32 interpretation.pwm_to_meme(pwms, meme_file)
TypeError: get_pwms_explainn() missing 1 required positional argument: 'filter_size'
I did assign filter_size argument, but it still popped up argument miss error.
Any suggestion for fix this? Thanks in advance!
Best,
Xuan
The text was updated successfully, but these errors were encountered: