nn_bimatrix_games
Science Score: 54.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
✓Academic publication links
Links to: arxiv.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (11.2%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: massimilianofurlan
- License: gpl-3.0
- Language: Python
- Default Branch: main
- Size: 190 KB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
Overview
This repository contains the code for "D. Condorelli, M. Furlan. Deep Learning to Play Games".
Replication instructions are listed in the replication file. This is a work in progress. Replication instructions might be broken.
Table of Contents
Installation (one-time setup)
Follow these steps to set up the project environment. You only need to do this once:
Clone the Repository:
Download the code to your local machine:bash git clone https://github.com/massimilianofurlan/nn_bimatrix_games.gitInstall Python:
Make sure Python is installed. On macOS, you can use Homebrew:bash brew install python3.12Set Up a Virtual Environment:
Navigate to the project folder and create a virtual environment:bash cd nn_bimatrix_games python3.12 -m venv venvActivate the Virtual Environment:
Activate the environment to isolate project dependencies:bash source venv/bin/activateInstall Dependencies:
Upgradepipand install the required libraries:bash pip install --upgrade pip pip install -r requirements.txt
Once these steps are completed, the environment is ready for use.
Basic Usage
Make sure you are in the nn_bimatrix_games project folder and the virtual environment is activated:
bash
cd nn_bimatrix_games
source venv/bin/activate
(a) Launching Training
To train a pair of neural networks on 2×2 games, use the following command:
bash
python -m src.scripts.training.train --config=2x2_example --batch_size=128 --n_games=33554432 --name=2x2_example
(b) Generating an Evaluation Set
To generate a labeled dataset for evaluating 2×2 games:
bash
python -m src.scripts.data.generate_evalset --n_actions=2 --n_games=131072 --name=2x2_example_dataset
(c) Evaluating the Model on the Evaluation Set
To evaluate a trained model on the evaluation dataset:
bash
python -m src.scripts.evaluation.evaluate --model=2x2_example --dataset=2x2_example_dataset
Note: Make sure that the
--modeland--datasetnames match the names used during training and evaluation set generation.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Owner
- Name: Massimiliano Furlan
- Login: massimilianofurlan
- Kind: user
- Location: Coventry, United Kingdom
- Company: University of Warwick
- Website: https://massimilianofurlan.github.io
- Repositories: 5
- Profile: https://github.com/massimilianofurlan
MRes in Economics
Citation (CITATION.cff)
cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Condorelli"
given-names: "Daniele"
- family-names: "Furlan"
given-names: "Massimiliano"
title: "Deep Learning to Play Games"
version: 1.0.0
date-released: 2023-09-25
url: "https://github.com/massimilianofurlan/nn_bimatrix_games"
repository: "https://github.com/massimilianofurlan/nn_bimatrix_games"
GitHub Events
Total
- Delete event: 1
- Public event: 1
- Push event: 36
- Create event: 1
Last Year
- Delete event: 1
- Public event: 1
- Push event: 36
- Create event: 1