- Mean field inference for binary images The MNIST dataset consists of 60, 000 images of handwritten digits, curated by Yann LeCun, Corinna Cortes, and Chris Burges. You can find it
here , together with a collection of statistics on recognition, etc. We will use the first 500 of the training set images.
- Obtain the MNIST training set, and binarize the first 500 images by mapping any value below .5 to -1 and any value above to 1. For each image, create a noisy version by
randomly flipping 2% of the bits.
- Now denoise each image using a Boltzmann machine model and mean field inference. Use theta_{ij}=0.2 for the H_i, H_j terms and theta_{ij}=2 for the H_i, X_j terms.
To hand in: Report the
fraction of all pixels that are correct in the 500 images.
- To hand in: Prepare a figure showing the original image, the noisy image, and the reconstruction for
- your most accurate reconstruction
- your least accurate reconstruction
- Assume that theta_{ij} for the H_i, H_j terms takes a constant value c. We will investigate the effect of different values of c on the performance of the denoising algorithm. Think of your algorithm as a device that accepts an image, and for each pixel, predicts 1 or -1. You can evaluate this in the same way we evaluate a binary classifier, because you know the right value of each pixel. A receiver operating curve is a curve plotting the true positive rate against the false positive rate for a predictor, for different values of some useful parameter. We will use c as our parameter. To hand in: Using at least five values of c in the range 0 to 2, plot a receiver operating curve for your denoising algorithm.