{"id":22206391,"url":"https://github.com/manik2000/q-voter","last_synced_at":"2025-03-25T03:36:38.909Z","repository":{"id":155219835,"uuid":"412436066","full_name":"Manik2000/q-voter","owner":"Manik2000","description":"Web application built with Python and Dash simulating the q-voter model evolution.","archived":false,"fork":false,"pushed_at":"2023-08-28T17:56:48.000Z","size":30580,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-30T04:25:29.385Z","etag":null,"topics":["dash","python","q-voter"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Manik2000.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-10-01T11:15:19.000Z","updated_at":"2024-12-27T14:52:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"8259a2b2-74bb-4d06-98bb-8b0e6735ebd1","html_url":"https://github.com/Manik2000/q-voter","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/Manik2000%2Fq-voter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Manik2000%2Fq-voter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Manik2000%2Fq-voter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Manik2000%2Fq-voter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Manik2000","download_url":"https://codeload.github.com/Manik2000/q-voter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245394774,"owners_count":20608123,"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":["dash","python","q-voter"],"created_at":"2024-12-02T18:11:40.704Z","updated_at":"2025-03-25T03:36:38.888Z","avatar_url":"https://github.com/Manik2000.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Q-voter model simulation\n\nA Dash web application with simulation of evolution of Q-voter model with two kinds of agent behaviours:\n* with anti-conformity,\n* with independence.\n  \n![obraz](https://github.com/Manik2000/q-voter/assets/65563314/4d56ce5b-5d03-4bf6-8ee3-a9408f57d2f2)\n\n## Q-voter model\n\nQ-voter model is a model of binary opinion dynamics (agent opinion is either $+1$ or $-1$). Each agent (a member of some society) can be influenced by their $q$ neighbours. If the neighbours' opinion are consistent, then the agent adopts this opinion. Otherwise, the agents keeps their opinion.\n\nHowever, some we can introduce some agent behaviours:\n* **anti-conformity** \u0026mdash; if the neighbours' opinions are consistent, then the agent adopts the opposite opinion with some probabilty $p$,\n* **independence** \u0026mdash; the agent becomes independent with probability $p$ and flips its opinon with probability $f$.\n\nIn this app q-voter model evolution is simulated on a square lattice with periodic boundary conditions. There are different kinds of lattices \u0026mdash; see image below.\n\n![](assets/lattices.png)\n\n## Structure\n\n```\n├── assets\n├── LICENSE\n├── README.md\n├── .gitignore\n├── app.py \u003c- contains Dash app layout and logic\n└── scripts/\n    ├── lattice.py \u003c- contains functions for generating initial lattices\n    └── simulation.py \u003c- contains functions simulating evolution of q-voter models\n```\n\n## Web application\n\nYou can view the application [here](https://q-voter-simulation.onrender.com/). It is hosted as a web service on [Render](https://render.com/).\n\n## Running application on your own\n\nPlease clone the repository, install packages from `requirements.txt` and run `python app.py` in the console.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanik2000%2Fq-voter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanik2000%2Fq-voter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanik2000%2Fq-voter/lists"}