Skip to main content
100%

Gist 2cfcfa50bdb3d72af8a3

✓ Published0🌍 Public
SSamyMe
Last edited Dec 3, 2015
Created on Dec 3, 2015

This example demonstrates a complete neural network training pipeline for MNIST digit classification using Theano and the Blocks library. It constructs a two-layer MLP with rectified linear and softmax activations, applies L2 weight regularization, and trains the model via gradient descent with a scale step rule. The code uses Blocks' `ComputationGraph`, `VariableFilter`, and `DataStreamMonitoring` to track test cost, while Flatten transforms the MNIST data streams. Training runs for a single epoch with batch sizes of 256 and 1024 for training and testing, respectively.

AI-generated description

Similar vizzes