This repository contains Python exercises for the "Neural Networks for Optimal Control" course.
In order to run this project it is recommended to use a virtual environment
and required to install some dependencies.
The setup process for both actions is automated using setup.py.
Follow these steps to set up the project:
git clone https://github.com/DecodEPFL/NNs-for-OC
cd NNs_for_OCExecute the following command to create a virtual environment and install dependencies:
python setup.pyAfter installation, activate the environment (if working on the console):
- On macOS/Linux:
source venv/bin/activate - On Windows (CMD or PowerShell):
venv\Scripts\activate
Otherwise, activate the environment through the UI of your preferred development environment (PyCharm, VS Code, etc). Note: If you use VS Code, you need to add the path manually. One way to do this is by adding a base_folder.pth file in venv/Lib/site-packages containing the complete path, e.g., C:...\NNs-for-OC.
The project requires the following dependencies, which are automatically installed from requirements.txt:
torchnumpymatplotlibjaxpiptqdm
- Ensure you have Python installed.
- If you encounter permission issues, try running commands with
python3instead ofpython.