This is my personal DQN project for LunarLander (via gymnasium) — TensorFlow-based, notebook-driven, and meant for tinkering.
main.ipynb: training + eval + video recordingq_network.h5,target_q_network.h5: saved networksvideos/: evaluation clips (mp4)
Create a venv and install the essentials:
python -m venv .venv; .\.venv\Scripts\Activate.ps1
pip install -U pip
pip install gymnasium[box2d] tensorflow numpyRun main.ipynb to train or eval; the notebook uses RecordVideo and drops MP4s into videos/.
Here are a few representative eval clips from the training run — early → mid → later. Playable in the README (if your browser supports MP4):