{"id":13476863,"url":"https://github.com/Rupt/paper-which-is-real","last_synced_at":"2025-03-27T04:31:23.758Z","repository":{"id":43326078,"uuid":"425101629","full_name":"Rupt/paper-which-is-real","owner":"Rupt","description":"Code and data to reproduce content for \"A method to challenge symmetries in data with self-supervised learning\" (https://arxiv.org/abs/2111.05442)","archived":true,"fork":false,"pushed_at":"2023-10-01T09:37:46.000Z","size":3606,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-01T16:46:24.768Z","etag":null,"topics":["machine-learning","physics","symmetry"],"latest_commit_sha":null,"homepage":"https://doi.org/10.1088/1748-0221/17/08/P08024","language":"Jupyter Notebook","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Rupt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-11-05T22:38:33.000Z","updated_at":"2023-10-01T09:38:00.000Z","dependencies_parsed_at":"2024-01-13T18:25:23.721Z","dependency_job_id":"d56656ad-2f8f-4c27-9d01-449c787434ae","html_url":"https://github.com/Rupt/paper-which-is-real","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rupt%2Fpaper-which-is-real","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rupt%2Fpaper-which-is-real/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rupt%2Fpaper-which-is-real/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rupt%2Fpaper-which-is-real/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rupt","download_url":"https://codeload.github.com/Rupt/paper-which-is-real/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222194499,"owners_count":16946976,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["machine-learning","physics","symmetry"],"created_at":"2024-07-31T16:01:35.472Z","updated_at":"2024-10-30T09:30:41.272Z","avatar_url":"https://github.com/Rupt.png","language":"Jupyter Notebook","funding_links":[],"categories":["Jupyter Notebook"],"sub_categories":[],"readme":"# Supporting code for:\u003cbr\u003eA method to challenge symmetries in data with self-supervised learning\n\n- JINST: https://doi.org/10.1088/1748-0221/17/08/P08024\n- arXiv: https://arxiv.org/abs/2111.05442\n- Zenodo: https://doi.org/10.5281/zenodo.6861702\n\nTest symmetries with sklearn decision tree models.\n\n# Setup\nBegin from an environment with a recent version of python 3.  \\\nWe recommend using anaconda:\n```bash\nconda create -n which-is-real python==3.10.4\n```\nfollowed by\n```bash\nconda activate which-is-real\n```\nInstall and activate a python virtual environment with our required packages:\n```bash\nsource setup.sh\n```\nYou can leave the environment with `deactivate`.  \\\nTo clean up fully, remove the installation directory `env/`.\n\n# Run experiments\nWe include scripts to reproduce all experiments from the paper and a few others.  \\\nTo run all, execute:\n```bash\nmake\n```\nThis dumps plots into the various directories `example_*/`.\n\nWe describe each in a little more detail below.\n\n## Experiment 1: Gappy detector\nThe cylindrical particle detector with holes and varying efficiencies.  \\\nIn the paper, this is illustrated in Figures 2 and 3, and discussed in Section 5.\n\nNotebook version: `example_ring_paper.ipynb`.  \\\nYou should be able to view this on GitHub with all figures and other outputs.\n\nExecute the plain python version with:\n```bash\nmake example_ring_paper.log\n```\nThis reproduces plots from the paper and dumps them into the directory `example_ring_paper/`.  \\\n\n## Experiment 2: Height map\nThe topographical map from Figure 4 and Section 6 of the paper.\n\nNotebook version: `example_map_paper.ipynb`.  \\\nYou should be able to view this on GitHub with all figures and other outputs.\n\nExecute the plain python version with:\n```bash\nmake example_map_paper.log\n```\nThis reproduces plots from the paper and dumps them into the directory `example_map_paper/`.\n\n## Bonus experiments:\n* `make example_ring.log`\n  * Similar to Experiment 1, plotted in 2D, showing both real and fake (transformed) data.\n  * Plots dump to `example_ring/`.\n* `make example_map.log`\n  * Similar to Experiment 2, with more variety in its filtering symmetry-breaking wave.\n  * Plots dump to `example_map/`.\n* `make example_step.log`\n  * A minimal example testing translation symmetry on the unit interval.\n  * Uses rejection sampling for fakes.\n  * Plots dump to `example_step/`.\n\nThese `make` commands run corresponding `example_*.py` scripts\nafter ensuring that input data are prepared.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRupt%2Fpaper-which-is-real","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FRupt%2Fpaper-which-is-real","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRupt%2Fpaper-which-is-real/lists"}