Skip to content

KfirD/PersianRug

Repository files navigation

Persian Rug

This repository is for reproducing the plots (and corresponding data) in "The Persian Rug: solving toy models of superposition using large-scale symmetries".

Setup

  1. Create and activate a new conda environment:
conda create -n persian-rug python=3.10
conda activate persian-rug
  1. Install the package and its dependencies in editable mode:
pip install -e .

Training your own models

See the jupyter notebook getting_started.ipynb.

Re-creating the plots in the paper

To re-train the models we trained, run:

python train_models.py

Then to make the plots, run:

python plotting_scripts/make_rps_plots.py
python plotting_scripts/make_hadamard_plots.py
python plotting_scripts/plot_matrix.py saved_models/recreate_trained_models/921

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published