Convolution and filters
Slide a 3 × 3 kernel over an image: blur, sharpen, edge detection. Edit the weights and follow the computation of one pixel, term by term.
English interface, partly translated: navigation, lab, projects, series, about and contact are; the home page sections, the site search and the content itself (articles, tutorials, research) are still in French.
Move the points and watch the least squares line follow. Then learn the same line by gradient descent and compare.
| method | slope a | intercept b | error (MSE) | R² |
|---|---|---|---|---|
| Least squares | 0.745 | 1.2065 | 0.4378 | 0.8903 |
| Gradient, step 0 | 0 | 0 | 28.6683 | −6.1859 |
We look for the line that passes "as close as possible" to points . "As close as possible" is measured by the mean squared error:
Each term is the square of a residual, the vertical gap between a point and the line.
The MSE is a convex function of : its minimum is found by setting its derivatives to zero, which gives
The coefficient tells what share of the variance of the line explains.
Gradient descent starts from an arbitrary line and corrects it at each step in the direction that lowers the error:
It converges to the exact solution. This is the method that generalises to models with no closed form: a neural network is trained exactly this way.
Slide a 3 × 3 kernel over an image: blur, sharpen, edge detection. Edit the weights and follow the computation of one pixel, term by term.
Decompose an image into LL, HL, LH and HH sub-bands over several levels, drop the small coefficients and measure what the reconstruction loses.
Four algorithms explore the same grid. Draw walls, add costly terrain and compare the visited cells and the cost of the path.