Reinforcement learning - Autonomous spacecraft landing
A reinforcement learning project that goes from first principles to a deployed landing agent.
The problem
Landing a spacecraft is a control problem where each action changes what comes next, and where a good score on one run proves little.
I wanted to show sound reasoning about reinforcement learning, with each step validated before the next, rather than a single benchmark score.
The approach
Four notebooks take LunarLander-v3 from the foundations to the final agent, with tabular Q-learning, then DQN, then PPO. PPO was chosen for the last stage because its clipped objective makes training stable and reproducible.
The notebooks document the assumptions, the shaping of the reward and the handling of variance, with seeds, repeated evaluations and smoothing.
A FastAPI backend serves the trained policy and a Vue frontend lets you choose a starting state, run an episode and compare training runs.
The results
In the published runs, the best PPO checkpoint reached an average reward of 237 over ten evaluation episodes, where 200 is the usual bar for a successful landing.
Training longer did not help by itself. A run twice as long peaked at 171, which is why the dashboard compares runs instead of showing a single score.
The limits
LunarLander is a controlled stand-in for real flight. The project presents a credible baseline and makes no claim of transfer to a real vehicle.
Ten evaluation episodes leave a wide margin of error, so small differences between runs should not be over-read.
The stack
- Python
- Vue.js
- Gymnasium
- Stable-Baselines3
- PPO
- DQN
- Q-Learning
- Q-Table
- LunarLander-v3
- FastAPI
Contact
If you'd like to discuss a role, request a demo, or ask about my projects, feel free to reach out.
I'm looking for a hands-on senior AI/ML engineer or AI tech lead role, in Lyon or remote. I'm also happy to talk about AI projects, consulting, or leading an AI team.