{"id":21259625,"url":"https://github.com/howl-anderson/q_learning_demo","last_synced_at":"2025-07-11T03:30:39.888Z","repository":{"id":32989310,"uuid":"129727924","full_name":"howl-anderson/q_learning_demo","owner":"howl-anderson","description":"Show how Q-learning works from scratch","archived":false,"fork":false,"pushed_at":"2022-12-08T01:00:20.000Z","size":16,"stargazers_count":5,"open_issues_count":3,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T19:41:29.256Z","etag":null,"topics":["gym-environment","q-learning","reinforcement-learning","reinforcement-learning-algorithms"],"latest_commit_sha":null,"homepage":"http://blog.xiaoquankong.ai/基于-OpenAI-Gym-的-Q-Learning-算法演示/","language":"Jupyter Notebook","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/howl-anderson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-16T10:48:28.000Z","updated_at":"2021-05-06T11:22:04.000Z","dependencies_parsed_at":"2023-01-14T22:57:09.783Z","dependency_job_id":null,"html_url":"https://github.com/howl-anderson/q_learning_demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/howl-anderson/q_learning_demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/howl-anderson%2Fq_learning_demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/howl-anderson%2Fq_learning_demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/howl-anderson%2Fq_learning_demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/howl-anderson%2Fq_learning_demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/howl-anderson","download_url":"https://codeload.github.com/howl-anderson/q_learning_demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/howl-anderson%2Fq_learning_demo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264721277,"owners_count":23653909,"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":["gym-environment","q-learning","reinforcement-learning","reinforcement-learning-algorithms"],"created_at":"2024-11-21T04:14:47.746Z","updated_at":"2025-07-11T03:30:39.570Z","avatar_url":"https://github.com/howl-anderson.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"[中文版本的 README](README.zh-Hans.md)\n------------------------------\n\n# Q-Learning-Demo\n\n[![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/howl-anderson/q_learning_demo/master?filepath=jupyter_notebooks%2Fproof-of-concept.ipynb)\n\nA project show how Q-learning works from scratch\n\n## Blog\n\n[基于 OpenAI Gym 的 Q-Learning 算法演示](http://blog.xiaoquankong.ai/%E5%9F%BA%E4%BA%8E-OpenAI-Gym-%E7%9A%84-Q-Learning-%E7%AE%97%E6%B3%95%E6%BC%94%E7%A4%BA/)\n\n## Getting Started\n\nDownload or git clone this repository.\n\n## Proof of concept\n**Online demo**\n\nA Jupyter notebook is provided to demo online. Link is [here](https://mybinder.org/v2/gh/howl-anderson/q_learning_demo/master?filepath=jupyter_notebooks%2Fproof-of-concept.ipynb).\n\n### Prerequisites\n\nPython 3.5+\n\nCheck you python version with this\n```\npython --version\n```\n\n### Installing\n\nGit clone the code\n\n```\ngit clone https://github.com/howl-anderson/q_learning_demo.git\n```\n\nthen\n\n```\ncd q_learning_demo\n```\n\n## Running the training\n\nYou can train your model or skip this to used pre-trained model\n\n```\npython -m q_learning_demo.train\n```\n\n### Running the pre-trained model\n\nUse built-in pre-trained model to test model\n\n```\npython -m q_learning_demo.load\n```\n\n## Built With\n\n* [OpenAI Gym](https://github.com/openai/gym) - The reinforcement framework used\n\n## Contributing\n\nPlease read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.\n\n## Versioning\n\nWe use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/howl-anderson/q_learning_demo/tags).\n\n## Authors\n\n* **Xiaoquan Kong** - *Initial work* - [howl-anderson](https://github.com/howl-anderson)\n\nSee also the list of [contributors](https://github.com/howl-anderson/q_learning_demo/contributors) who participated in this project.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details\n\n## Acknowledgments\n\n* [Billie Thompson](https://github.com/PurpleBooth) - For README.md \u0026 CONTRIBUTING.md template\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhowl-anderson%2Fq_learning_demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhowl-anderson%2Fq_learning_demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhowl-anderson%2Fq_learning_demo/lists"}