All demos
KNN Face Expression Activity
Algorithm walkthrough Add a face to a class Instructor dataset setupSee how nearby examples make a prediction
K-nearest neighbors classifies a new point by looking at the labeled points closest to it. This activity is for experimenting with the prediction after you understand the algorithm steps.
Try this
- Choose a dataset and move the sample point or select a preset.
- Compare the nearest neighbors and prediction.
- Change K and notice when the vote changes.
Sample point
Custom
Presets
Upload a face photo to start measuring.
Upload and measure
Upload a photo, then click the measurement points on the image.
Click the face and mouth landmarks in order. The image stays in this browser session only.
- Face left edge
- Face right edge
- Mouth left corner
- Mouth right corner
- Top of mouth opening
- Bottom of mouth opening