liveBook · Manning

Mean squared error

As explained in Outlier Detection in Python

Mean squared error is the average of the squared differences between corresponding predicted and observed values.

Mean squared error (MSE) averages the squared differences between corresponding predicted and observed values. In image outlier detection, it measures reconstruction error between an original image and its autoencoder reconstruction. section 16.4

A low reconstruction error indicates that the autoencoder reproduces an input closely; a high error can support flagging the input as an outlier, but the error must be interpreted in context. section 16.4

Detecting a perturbed image

An autoencoder reconstructs a typical boat image quite closely. After random noise is added, the reconstruction differs substantially, producing high MSE and an outlier flag.

How Outlier Detection in Python covers it

How deep it goes
Defines MSE through reconstruction error and demonstrates its interpretation, without deriving the formula or discussing statistical properties.
Examples
Demonstrates MSE on CIFAR10 images, including a boat image before and after random noise perturbation.
What it assumes
Assumes familiarity with Keras autoencoders, image data, convolutional layers, and detector fitting and prediction.
What you can do after
Diagnose image outliers by comparing autoencoder reconstructions and examining reconstruction error.
How it connects
Connects mean squared error with autoencoders, reconstruction error, image outlier detection, and convolutional layers.

Also explained in

Compare how 13 books explain mean squared error →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Outlier Detection in Python. The section links point to the parts of the book it draws on.