All projects.

14 projects across LLMs, vision, generative models, sequence models, explainable AI and reinforcement learning.

  • The agent loop: the LLM calls tools, results flow back into the context, and the context feeds the next LLM call.

    LLMs & Agents

    An LLM Agent From Scratch

    A tool-calling LLM agent in plain Python with sandboxed bash, sub-agents and context engineering. 100% on golden tasks, 60% fewer tokens.

  • Three drone focal-stack images of a forest, focused at 0 m, 1 m and 2 m, with a person hidden under the trees.

    Computer Vision

    Seeing Through the Forest

    A self-supervised U-Net-style autoencoder (18.7M parameters) that removes forest occlusion from drone focal stacks to reveal hidden people.

  • Top: preprocessing converts photos to grayscale and pixelates a random region. Bottom: the CNN reconstructs the pixelated region.

    Computer Vision

    Self-Supervised Unpixelation

    A 9-layer CNN that removes pixelation from grayscale images. The original pixels are the ground truth, so no labelled data is needed.

  • Overview of cancer types across the human body.

    Computer Vision

    Machine Learning for Cells & Molecules

    Three separate projects: a Wide ResNet tells 9 cancer cell lines apart, Random Forests predict toxicity, and an LSTM writes new molecules.

  • Explaining Credit Default — project illustration

    Explainable AI & Data Viz

    Explaining Credit Default

    Surrogate trees, SHAP, LIME, partial dependence and UMAP counterfactuals explain a Random Forest on 30,000 credit-card clients. PAY_1 dominates.

  • t-SNE game paths. Blue: the trained agent against a random player, with its fixed opening and wins clustered at the bottom. Green: two random players, spread out.

    Explainable AI & Data Viz

    Mapping Connect 4

    t-SNE, UMAP and PCA project 42-dimensional Connect 4 board states to 2D, revealing how games evolve and how a trained agent wins.

  • The PPO loop: collect a dataset, update actor and critic, reset, repeat.

    Reinforcement Learning

    Learning to Walk with PPO

    An actor-critic PPO agent learns continuous control in BipedalWalker over 3,000 episodes, with steadily rising rewards.

  • Transformer block: input embedding plus positional encoding, multi-head attention, feed-forward.

    Sequence Models

    Character-Level Transformer

    A GPT-style transformer built from scratch in PyTorch, trained on speech transcripts. Temperature trades creativity for predictability.

  • An LSTM cell: forget, input and output gates control the cell state (memory) and the hidden state.

    Sequence Models

    LSTM Text Generation & Compression

    A character-level LSTM in PyTorch writes text with Gumbel-Max sampling and turns its predictions into adaptive Huffman codes for compression.

  • The flow maps between Gaussian noise and MNIST digits, forwards and in reverse.

    Generative Models

    Normalising Flows on MNIST

    Invertible coupling layers trained by maximum likelihood on MNIST. Sample a Gaussian, invert through the flow, get new digits.

  • The generator turns random noise into fake digits; the discriminator judges real versus fake.

    Generative Models

    GANs & Adversarial Examples

    A GAN on MNIST where a generator learns to fool a discriminator, plus projected-gradient-ascent adversarial examples that fool classifiers.

  • Training encodes digits into a latent space; generation samples from it and decodes new images.

    Generative Models

    Variational Autoencoder

    A VAE with the reparameterization trick and a KL-regularized latent space. Sample from the prior, decode, get new images.

  • A classic CNN: convolutions and subsampling build feature maps, then fully connected layers.

    Computer Vision

    Deep Learning Foundations

    Transfer learning on CIFAR-10, ResNet-style skip connections, mobile CNNs under 30K parameters, and solid training tooling.