{"id":13398444,"url":"https://github.com/erikbern/deep-pink","last_synced_at":"2025-04-04T11:10:21.601Z","repository":{"id":19735133,"uuid":"22991513","full_name":"erikbern/deep-pink","owner":"erikbern","description":"Deep Pink is a chess AI that learns to play chess using deep learning.","archived":false,"fork":false,"pushed_at":"2017-02-20T17:09:40.000Z","size":57440,"stargazers_count":813,"open_issues_count":9,"forks_count":159,"subscribers_count":60,"default_branch":"master","last_synced_at":"2024-10-14T14:33:46.588Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://erikbern.com/2014/11/29/deep-learning-for-chess/","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/erikbern.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}},"created_at":"2014-08-15T14:07:00.000Z","updated_at":"2024-10-05T12:32:17.000Z","dependencies_parsed_at":"2022-08-24T14:09:24.655Z","dependency_job_id":null,"html_url":"https://github.com/erikbern/deep-pink","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/erikbern%2Fdeep-pink","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erikbern%2Fdeep-pink/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erikbern%2Fdeep-pink/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erikbern%2Fdeep-pink/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erikbern","download_url":"https://codeload.github.com/erikbern/deep-pink/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247166156,"owners_count":20894652,"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-07-30T19:00:26.381Z","updated_at":"2025-04-04T11:10:21.583Z","avatar_url":"https://github.com/erikbern.png","language":"Python","readme":"deep-pink\n=========\n\nDeep Pink is a chess AI that learns to play chess using deep learning. [Here](http://erikbern.com/2014/11/29/deep-learning-for-chess/) is a  blog post providing some details about how it works.\n\nThere is a pre-trained model in the repo, but if you want to train your own model you need to download pgn files and run `parse_game.py`. After that, you need to run `train.py`, preferrably on a GPU machine since it will be 10-100x faster. This might take several days for a big model.\n\nNote that the code is a bit hacky (eg. hardcoded paths in some places) so you might have to modify those to suit your needs.\n\nDependencies\n============\n\n* [Theano](https://github.com/Theano/Theano): `git clone https://github.com/Theano/Theano; cd Theano; python setup.py install`\n* [Sunfish](https://github.com/thomasahle/sunfish): `git clone https://github.com/thomasahle/sunfish`. You need to add it to PYTHONPATH to be able to play\n* [python-chess](https://pypi.python.org/pypi/python-chess) `pip install python-chess`\n* [scikit-learn](http://scikit-learn.org/stable/install.html) (only needed for training)\n* [h5py](http://www.h5py.org/): can be installed using `apt-get install python-hdf5` or `pip install hdf5` (only needed for training)\n","funding_links":[],"categories":["Researchers","Table of Contents","Open-Source Projects","Miscellaneous","Python"],"sub_categories":["Miscellaneous","Blogs","Chess Projects","List of lists"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferikbern%2Fdeep-pink","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferikbern%2Fdeep-pink","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferikbern%2Fdeep-pink/lists"}