University Team Project

LunarLander Reinforcement Learning

A controlled reinforcement learning study of spacecraft control in LunarLander-v3, with separate comparisons for reward shaping and hyperparameter tuning.

Experimental design

  • Environment and policy. The agent observes position, velocity, orientation, angular velocity and leg contact, and chooses among four discrete actions controlling the engines. The interaction loop distinguishes task termination from time-limit truncation.
  • Group A. Train a baseline on the original environment reward with three independent seeds. Compare it with a random-action agent as a reference for untrained behavior.
  • Group B. Train with a reward wrapper on the same three seeds, retaining the algorithm, hyperparameters and environment-step budget. A reward change alters the feedback the policy learns from.
  • Group C. Retain the original reward and test three additional values of one learning hyperparameter, with one training run per value. This changes how the policy is optimized while holding its objective constant.

Objective

Investigate how a reinforcement learning policy controls a spacecraft in Gymnasium LunarLander-v3 and how reward engineering and hyperparameter selection affect behavior, training stability and performance.

Architecture

The nine-run protocol separates Python configuration, Stable-Baselines3 training, the reward wrapper and evaluation. Reproducing a run depends on recording seeds, dependency versions, settings and the environment-step budget. TensorBoard or equivalent captures learning curves, and a checkpoint preserves each policy for evaluation.

Engineering practices

Evaluate every saved policy and the random reference on at least 20 episodes with shared evaluation seeds. Run trained policies deterministically and use the original environment reward for every evaluation. Removing the shaping wrapper ensures a modified reward cannot raise its own evaluation score. Report episode returns and lengths, mean and standard deviation, and a task-specific measure such as successful landings.

Engineering trade-offs

The comparison separates the effects of feedback and learning settings. Training curves help explain stability and learning speed, while common evaluation and video examples make behavior and failure modes easier to interpret. The single-run hyperparameter variants provide exploratory comparisons.

Design scope and deliverables

The study specification calls for reproducible Python code and experiment configurations, saved policies and logs, a comparative technical report, and a visual demonstration. Earlier Q-learning, Monte Carlo, Gridworld and Pac-Man exercises form separate coursework.

Technologies, methods and related skills

Browse all project tags

Programming languages

Frameworks and libraries

Tools and platforms

Search the skills explorer

All case studiesInteractive CV