Experiments are located in the directory experiments
.
torch
numpy
matplotlib
pandas
tqdm
This experiment trains a two-layer network, and tracks the rank of the Jacobian matrix as it evolves during training. To run the two-layer network experiment, open the directory experiments
and run python twolayer.py
.
This experiment numerically approximates the probability that a randomly initialized two-layer network is of full rank for various scalings of experiments
and run python full_rank_regions.py
. A heatmap will be generated showing the probability of the Jacobian being of full rank for various choices of --experiment varying_input_dim
will scale
python full_rank_regions.py --experiment varying_input_dim --ratio 0.5
will generate a heatmap with --experiment fixed_input_dim
will set
python full_rank_regions.py --experiment fixed_input_dim --input_dim 1
will set