AmazonEdge is an AI for Game of Amazons, based on neural networks with supervised learning and reinforcement learning.
- python 2.7
- Anaconda3(Recommend)
-
Download
Anaconda
: https://www.anaconda.com/download/#linux -
Installing
Anaconda
follow Document -
Create an environment for
AmazonEdge
:
conda create -n AmazonEdge python=2.7 # Create an environment named AmazonEdge with python2.7
source activate AmazonEdge # Enter this environment
pip install -r requirements.txt
pip install tensorflow
Edit ~/.keras/keras.json
to
{
"image_dim_ordering": "tf",
"epsilon": 1e-07,
"floatx": "float32",
"backend": "tensorflow"
}
python -m tools.actions_to_feature_layers
The input file at data/actions/actions.txt
and the output file at data/hdf5/
, you can edit tools/actions_to_feature_layers
as needed.
To see what arguments are available, use
python -m AmazonEdge.training.supervised_policy_trainer --help
python -m build/create_model MODEL_NAME.json MODEL_PATH
python -m tests.test_supervised_policy_trainer