Files
PrimAITE/docs/source/getting_started.rst

70 lines
1.9 KiB
ReStructuredText
Raw Normal View History

2023-07-07 11:37:57 +01:00
User Guide
===========
Getting Started
****************
2023-07-07 16:25:55 +01:00
**PrimAITE**
2023-07-07 11:37:57 +01:00
2023-07-10 10:01:25 +01:00
About The Project
2023-07-11 13:49:01 +01:00
PrimAITE (**PrimAITE**) is a simulation environment for training AI under the ARCD programme.It incorporates the functionality required
2023-07-10 15:41:50 +01:00
of a Primary-level environment, as specified in the Dstl ARCD Training Environment
2023-07-07 11:37:57 +01:00
2023-07-10 15:41:50 +01:00
**PrimAITE** is currently under a closed development stage.
2023-07-07 11:37:57 +01:00
2023-07-07 16:25:55 +01:00
**What's PrimAITE built with**
2023-07-07 11:37:57 +01:00
2023-07-10 10:28:27 +01:00
- OpenAI's Gym (https://gym.openai.com/)
- Networkx (https://github.com/networkx/networkx)
- Stable Baselines 3 (https://github.com/DLR-RM/stable-baselines3)
- Rllib (part of Ray) (https://github.com/ray-project/ray)
2023-07-07 11:37:57 +01:00
2023-07-07 16:25:55 +01:00
**Getting Started with PrimAITE**
2023-07-07 11:37:57 +01:00
2023-07-07 16:25:55 +01:00
Pre-Requisites
2023-07-07 11:37:57 +01:00
In order to get **PrimAITE** installed, you will need to have the following installed:
2023-07-11 13:49:01 +01:00
- ``python3.8+``
- ``python3-pip``
- ``virtualenv``
2023-07-07 11:37:57 +01:00
**PrimAITE** is designed to be OS-agnostic, and thus should work on most variations/distros of Linux, Windows, and MacOS.
2023-07-07 16:25:55 +01:00
Installation from source
1. Navigate to the PrimAITE folder and create a new python virtual environment (venv)
2023-07-07 11:37:57 +01:00
2023-07-10 10:01:25 +01:00
``python3 -m venv <name_of_venv>``
2023-07-07 11:37:57 +01:00
2023-07-07 16:25:55 +01:00
2. Activate the venv
2023-07-07 11:37:57 +01:00
2023-07-10 10:01:25 +01:00
Unix
``source <name_of_venv>/bin/activate``
2023-07-07 11:37:57 +01:00
2023-07-07 16:25:55 +01:00
Windows
2023-07-07 11:37:57 +01:00
2023-07-10 10:01:25 +01:00
``.\<name_of_venv>\Scripts\activate``
2023-07-10 10:28:27 +01:00
3. Install `PrimAITE` into the venv along with all of it's dependencies
2023-07-10 15:41:50 +01:00
2023-07-10 10:01:25 +01:00
``python3 -m pip install -e .``
2023-07-07 11:37:57 +01:00
This will install all the dependencies including algorithm libraries. These libraries
2023-07-10 10:28:27 +01:00
all use ``torch``. If you'd like to install ``tensorflow`` for use with Rllib, you can do this manually
2023-07-11 13:49:01 +01:00
or install ``tensorflow`` as an optional dependency by postfixing the command in step 3 above with the ``[tensorflow]`` extra.
Example:
2023-07-07 11:37:57 +01:00
2023-07-10 10:01:25 +01:00
``python3 -m pip install -e .[tensorflow]``
2023-07-07 16:25:55 +01:00
2023-07-11 13:49:01 +01:00
To see all PrimAITE dependencies have a look at the dependencies page (:ref:`Dependencies`)
2023-07-07 16:25:55 +01:00
Development Installation
2023-07-11 13:49:01 +01:00
To install the development dependencies, postfix the command in step 3 above with the ``[dev]`` extra.
Example:
2023-07-07 11:37:57 +01:00
2023-07-10 10:01:25 +01:00
``python3 -m pip install -e .[dev]``