{"id":18264592,"url":"https://github.com/cheanus/classbeans","last_synced_at":"2025-04-09T01:32:45.276Z","repository":{"id":246134047,"uuid":"820195178","full_name":"cheanus/ClassBeans","owner":"cheanus","description":"模拟选课投意愿值的博弈过程，并分析结果","archived":false,"fork":false,"pushed_at":"2024-06-27T11:12:37.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T19:51:25.131Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/cheanus.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":"2024-06-26T02:03:41.000Z","updated_at":"2024-06-27T11:12:40.000Z","dependencies_parsed_at":"2024-06-26T03:33:29.332Z","dependency_job_id":"8d8f3602-a08b-4c0a-a61f-e198c46f2e05","html_url":"https://github.com/cheanus/ClassBeans","commit_stats":null,"previous_names":["cheanus/classbeans"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheanus%2FClassBeans","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheanus%2FClassBeans/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheanus%2FClassBeans/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheanus%2FClassBeans/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cheanus","download_url":"https://codeload.github.com/cheanus/ClassBeans/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247956533,"owners_count":21024568,"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-05T11:15:18.999Z","updated_at":"2025-04-09T01:32:45.254Z","avatar_url":"https://github.com/cheanus.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ClassBeans\n模拟选课投意愿值的博弈过程，并分析结果\n## 原理\n思路：建立一个选课投豆博弈模型，通过程序模拟来得到纳什均衡。\n\n博弈过程：\n1. 确定每门课的（大概）预选课人数\n2. 使用随机采样确定所有学生的选课列表\n3. 所有学生根据k-豆曲线确定投豆数目\n4. 计算每门课的入选豆子下限\n5. 根据豆子下限，计算每个学生多投和少投的loss和，更新k-豆曲线\n\n详细可参考[文章-选课投豆的数学原理](https://caveallegory.cn/2024/06/%E9%80%89%E8%AF%BE%E6%8A%95%E8%B1%86%E7%9A%84%E6%95%B0%E5%AD%A6%E5%8E%9F%E7%90%86/)。\n## 依赖库\n安装依赖库：\n- pytorch\n- matplotlib\n## 运行\n1. 调整`game.py`中`train.py`里的初始化参数\n2. 执行命令\n```bash\npython game.py\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheanus%2Fclassbeans","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcheanus%2Fclassbeans","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheanus%2Fclassbeans/lists"}