Skip to content

About

Studying Phase Transitions in Contrastive Learning with Physics-Inspired Datasets

Resources

Stars

4 stars

Watchers

2 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

Repository files navigation

Phase Transitions in Contrastive Learning

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.txt

Training loop

To 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.

Visualization

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).

About

Studying Phase Transitions in Contrastive Learning with Physics-Inspired Datasets

Resources

Stars

4 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages