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

Sparsity Experiment #4

Open
robinhesse opened this issue Apr 29, 2021 · 0 comments
Open

Sparsity Experiment #4

robinhesse opened this issue Apr 29, 2021 · 0 comments

Comments

@robinhesse
Copy link

Hi,

Thanks a lot for this awesome project! I am currently trying to reproduce the results from the sparsity experiment and I think I found some minor bugs:

  1. In run_sparsity_experiments.py in line 277-289 (training the unregularized model) the refset must be enlarged to work with REF=100 samples.
    --> change line 281 to:
    refset = torch.utils.data.TensorDataset(torch.cat([Xtrain_tensor]*REFS))
    Additionally, ytest is not defined so one needs to add
    ytest = ytest_tensor.detach().cpu().numpy()
    after line 280

  2. In plot_results.ipynb you are plotting testscores, testsparsity, and testshaps but I think none of them is defined. Since I am not sure how those values are computed/obtained it would be great if you could help me out.

Thank you very much & Best,
Robin

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

1 participant