Skip to content

biggs/shallow-nets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This package requires jax, tensorflow, and numpy. Either tensorflow or scikit-learn can be used for loading data.

To run in a nix-shell with required packages (at specific versions used

nix-shell

Results are generated from main.py, running with arguments required, e.g. python main.py --lr <learning rate> --width <width>. The results as described in the paper are in csv files in the results subfolder.

Figures in the paper can be reproduced by running analysis.py. To generate plots with the bounds and errors using the same scale (as described in the appendix), set the variable BOUND_SCALE_AXIS in this file to False.

About

Code for the paper: Non-Vacuous Generalisation Bounds for Shallow Neural Networks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published