glassbox Neural networks built from scratch in NumPy, opened up so you can see inside.

Draw a digit and watch a neural network read it.

Every layer below runs live in your browser. The network is a 207k-parameter CNN trained with glassbox, a deep learning framework written from scratch in NumPy: no PyTorch, no TensorFlow.

Your digitdraw 0 to 9

Loading the model…

Prediction
?
 

    Inside the network

    Each panel is one layer's output for your drawing. The more strongly a unit fires, the more it stands out from the panel, relative to the strongest in that layer.

    Input1 × 28 × 28
    crop, scale, centre

    Your drawing as the network sees it: 784 pixels, prepared the same way MNIST was.

    Conv 116 × 28 × 28
    3×3 conv, ReLU

    16 filters, each tuned to a simple pattern such as an edge or a curve.

    Conv 232 × 14 × 14
    max-pool, 3×3 conv, ReLU

    32 filters that combine those patterns into strokes and corners.

    Dense128
    max-pool, flatten, linear, ReLU

    128 neurons, each weighing evidence from the whole image.

    Logits10
    linear

      Raw scores. Softmax turns them into the probabilities above.

      Hover or tap a feature map to see the learned filter that produced it.