{"id":20020090,"url":"https://github.com/vufa/amazonedge","last_synced_at":"2025-05-04T23:32:29.164Z","repository":{"id":112255894,"uuid":"111275795","full_name":"vufa/AmazonEdge","owner":"vufa","description":"An AI for Game of Amazons.","archived":false,"fork":false,"pushed_at":"2018-03-18T14:51:06.000Z","size":203,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-08T14:12:39.933Z","etag":null,"topics":["amazons","keras","python","tensorflow"],"latest_commit_sha":null,"homepage":"","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/vufa.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":"2017-11-19T07:59:10.000Z","updated_at":"2023-12-10T06:49:44.000Z","dependencies_parsed_at":"2023-06-03T07:00:44.506Z","dependency_job_id":null,"html_url":"https://github.com/vufa/AmazonEdge","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/vufa%2FAmazonEdge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vufa%2FAmazonEdge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vufa%2FAmazonEdge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vufa%2FAmazonEdge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vufa","download_url":"https://codeload.github.com/vufa/AmazonEdge/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252414589,"owners_count":21744134,"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":["amazons","keras","python","tensorflow"],"created_at":"2024-11-13T08:29:49.555Z","updated_at":"2025-05-04T23:32:29.156Z","avatar_url":"https://github.com/vufa.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AmazonEdge\n\nBuild Status: [![Build Status](https://travis-ci.org/countstarlight/AmazonEdge.svg?branch=master)](https://travis-ci.org/countstarlight/AmazonEdge)\n\n[简体中文](docs/zh_CN/README.md)\n\nAmazonEdge is an AI for Game of Amazons, based on neural networks with supervised learning and reinforcement learning.\n\n## Environment\n* python 2.7\n* Anaconda3(Recommend)\n\n## For Linux:\n#### 1.Create an `Anaconda` environment for `AmazonEdge`(Recommend)\n\n* Download `Anaconda`: https://www.anaconda.com/download/#linux\n\n* Installing `Anaconda` follow [Document](https://conda.io/docs/user-guide/install/linux.html)\n\n* Create an environment for `AmazonEdge`:\n\n```shell\nconda create -n AmazonEdge python=2.7\t# Create an environment named AmazonEdge with python2.7\nsource activate AmazonEdge\t# Enter this environment\n```\n#### 2.Install dependency packages\n```shell\npip install -r requirements.txt\n```\n#### 3.Use `tensorflow` as `Keras` backend\n```shell\npip install tensorflow\n```\nEdit `~/.keras/keras.json` to\n```json\n{\n    \"image_dim_ordering\": \"tf\", \n    \"epsilon\": 1e-07, \n    \"floatx\": \"float32\", \n    \"backend\": \"tensorflow\"\n}\n```\n## Phase 1: Supervised Learning and Policy Networks\n\n### Generate hdf5 file from actions file\n```shell\npython -m tools.actions_to_feature_layers\n```\nThe input file at `data/actions/actions.txt` and the output file at `data/hdf5/`, you can edit `tools/actions_to_feature_layers` as needed.\n### Supervised training\n\nTo see what arguments are available, use\n\n```shell\npython -m AmazonEdge.training.supervised_policy_trainer --help\n```\n\n#### 1.Get a model file(A json specifying the policy network's architecture)\n\n```shell\npython -m build/create_model MODEL_NAME.json MODEL_PATH\n```\n\n#### 2.Running Supervised training test\n```shell\npython -m tests.test_supervised_policy_trainer\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvufa%2Famazonedge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvufa%2Famazonedge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvufa%2Famazonedge/lists"}