This is the repository for Studying Phase Transitions in Contrastive Learning with Physics-Inspired Datasets, to appear in the Physics for Machine Learning Workshop at ICLR 2023. [Openreview]
First, to set up all the requirements, run the following from the root:
pip install -e .
pip install -r requirements.txtTo train a model on the Kepler dataset with a given alpha, run from the root:
python main.py --alpha={alpha}Training takes approximately 30 seconds on a consumer desktop.
After training a model, run from the root:
python visualize.py --id={id}where put id as start for the newly-initialized model, final for the final model, and the epoch number (by default every 20 epochs are saved, so this only works if you select multiples of 20). This will open up the visualization as HTML on your desktop (see options for other ways to display the visualization).