Skip to content

Latest commit

 

History

History
25 lines (22 loc) · 845 Bytes

README.md

File metadata and controls

25 lines (22 loc) · 845 Bytes

PredatorPreyReinfLearning

Reinforcement Learning in a Predator Prey model. Basically an implementation with some modification of the paper “An Agent-Based Predator-Prey Model with Reinforcement Learning” by M. Olsen and R. Fraczkowski.

Prerequisites

  • Python 2 or 3

Getting Started

Installation

  • The requred libraries are matplotlib, numpy and pandas (any recent version would be fine). You can install all the dependencies by:
pip install -r requirements.txt
  • Clone this repo:
git clone https://github.com/andrearama/PredatorPreyReinfLearning
cd PredatorPreyReinfLearning

Run the Simulation

Just start the simulation by launching the main program. It is possible to change the default standards (look at the main file for more information)

python Main.py --gridDim 70 --nGrass 1400