{"id":18535457,"url":"https://github.com/contextlab/hopfield-demo","last_synced_at":"2026-01-23T06:21:19.380Z","repository":{"id":88317527,"uuid":"121791701","full_name":"ContextLab/hopfield-demo","owner":"ContextLab","description":"Demo hopfield network code","archived":false,"fork":false,"pushed_at":"2018-02-16T19:34:21.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-15T00:18:33.213Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Matlab","has_issues":true,"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/ContextLab.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":"2018-02-16T19:29:36.000Z","updated_at":"2020-12-30T17:12:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"89a9b616-0940-4ad9-84f5-79cc3d96c533","html_url":"https://github.com/ContextLab/hopfield-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ContextLab%2Fhopfield-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ContextLab%2Fhopfield-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ContextLab%2Fhopfield-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ContextLab%2Fhopfield-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ContextLab","download_url":"https://codeload.github.com/ContextLab/hopfield-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254249207,"owners_count":22039030,"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-06T19:24:11.987Z","updated_at":"2026-01-23T06:21:19.340Z","avatar_url":"https://github.com/ContextLab.png","language":"Matlab","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Overview\n\nDemo Hopfield network code.\n\n# Running the demo\n\nAfter cloning this repository and adding it to your MATLAB path, run the demo by typing (in the MATLAB command window):\n\n`hopfield_simulation(D, N)` (where `D` is the number of neurons in the hopfield network and `N` is the number of memories to encode).\n\nThis will create `N` random memories (of `D` features each) and a random `D`-dimensional cue.\n\nWhen you press any key, those memories will be encoded into the network (modifying the weight matrix) and the plot will be updated.\n\nWhen you press any key a second time, the network will simulate \"retrieval\" by using aynchronous updates, starting from the cued memory state.  The simulation will stop when the network converges.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontextlab%2Fhopfield-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcontextlab%2Fhopfield-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontextlab%2Fhopfield-demo/lists"}