Interactive tools for Chapter 9. Move vectors, compare data points, change feature scales, explore nearest neighbors, and watch distances behave strangely in high dimensions.
We compare a query apartment to three apartments using rent, size, distance-to-campus, and bedrooms. Use the slider to change the weight of rent. Notice how the nearest neighbor can change.
A small image can be flattened into a vector. Pixel distance is easy to compute, but it may not always agree with human visual similarity.