{"id":20014278,"url":"https://github.com/dyth/causal-entropic-forces","last_synced_at":"2025-05-04T22:31:02.115Z","repository":{"id":82645397,"uuid":"93851021","full_name":"dyth/causal-entropic-forces","owner":"dyth","description":"An attempt to reimplement the 2013 paper by Wissner-Gross \u0026 Freer","archived":false,"fork":false,"pushed_at":"2024-12-21T18:24:29.000Z","size":61555,"stargazers_count":10,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-08T12:25:20.282Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dyth.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-09T11:09:48.000Z","updated_at":"2024-12-21T18:24:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"702c1390-8795-4c4b-b402-ce1bf06a0a0f","html_url":"https://github.com/dyth/causal-entropic-forces","commit_stats":null,"previous_names":["dyth/causal-entropic-forces","dyth/causalentropicforces"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyth%2Fcausal-entropic-forces","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyth%2Fcausal-entropic-forces/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyth%2Fcausal-entropic-forces/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyth%2Fcausal-entropic-forces/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dyth","download_url":"https://codeload.github.com/dyth/causal-entropic-forces/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252408030,"owners_count":21743031,"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":[],"created_at":"2024-11-13T07:39:53.955Z","updated_at":"2025-05-04T22:31:02.106Z","avatar_url":"https://github.com/dyth.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Causal Entropic Forces\n\nAn attempt to reimplement the particle in a box experiment as described\nin Fig.2a of [Wissner-Gross \u0026 Freer, 2013](http://math.mit.edu/~freer/papers/PhysRevLett_110-168702.pdf) and pages 2-3 and 10-11 of [supplementary material](https://journals.aps.org/prl/supplemental/10.1103/PhysRevLett.110.168702).\n\nThe code in its current state cannot reproduce the experiment reliably.\nI am not sure why and would welcome any help!\n\nCurrently, the particle-in-a-box behaves as below and does not move\ntowards the center of the plot.\n\n![particle](https://raw.githubusercontent.com/dyth/causalEntropicForces/secondImplementation/images/particle.png)\n\nThe algorithm works first by generating many random-walk paths through\nthe state-space -- here is a \"light cone\" plot of these random walks with\ntime on the vertical axis.\n\n[//]: # (edited from https://stackoverflow.com/a/14747656)\n\u003cimg src=\"https://raw.githubusercontent.com/dyth/causalEntropicForces/secondImplementation/images/lightcone.png\" width=\"512\" class=\"center\"/\u003e\n\nI then perform PCA to reduce the dimensionality of the array formed from\nconcatenating the states of the random walk through time, and then perform\nKDE (kernel density estimation) on these dimensionality-reduced random\nwalks.\n\nThen, I compute the probability density of each random walk and normalize\nthem by their sum (ie a sum over samples) to produce volume fractions,\nwhich can then be used in the algorithm on page 11 of the supplementary\nmaterial.\n\n\n\n## Installation\n\n```commandline\nconda create --name entropica python=3.12\nconda activate entropica\npip install notebook==7.2.2 ipython==8.29.0 numpy==2.1.2 matplotlib==3.9.2 scipy==1.14.1\n```\n\n[//]: # (```commandline)\n[//]: # (nohup jupyter notebook \u003e log.txt 2\u003e\u00261 \u0026)\n[//]: # (```)\n\nA nice way to run the jupyter notebook from a remote server is using the command\n```commandline\nnohup jupyter notebook --no-browser --ip 0.0.0.0 \u0026\n```\n\n\n## References\n\nI highly recommend reading the following sources that helped me to\nbetter understand this interesting work.\n\n1. Causal Entropic Forces [[Wissner-Gross \u0026 Freer, 2013a]](http://math.mit.edu/~freer/papers/PhysRevLett_110-168702.pdf).\n2. Supplementary Material to Causal Entropic Forces [[Wissner-Gross \u0026 Freer, 2013b]](https://journals.aps.org/prl/supplemental/10.1103/PhysRevLett.110.168702).\n3. Comment: Causal entropic forces [[Kappen, 2013]](https://arxiv.org/abs/1312.4185).\n4. Causal Entropic Forces: Intelligent Behaviour, Dynamics and Pattern Formation [[Hornischer, 2015]](https://pure.mpg.de/rest/items/item_2300851/component/file_2300850/content).\n5. Fractal AI: A fragile theory of intelligence [[Cerezo \u0026 Ballester, 2018]](https://arxiv.org/abs/1803.05049).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdyth%2Fcausal-entropic-forces","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdyth%2Fcausal-entropic-forces","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdyth%2Fcausal-entropic-forces/lists"}