Skip to content

Commit c6965f9

Browse files
authored
Update build-a-k-nearest-neighbor-model-with-p5js.mdx
1 parent bec654b commit c6965f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

projects/build-a-k-nearest-neighbor-model-with-p5js/build-a-k-nearest-neighbor-model-with-p5js.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ ellipse(mouseX, mouseY, 10, 10);
250250

251251
Now we just need to call it! At the bottom of the `draw()` function, call `classifyMouse()`. Feel free to move your mouse around and see if the classification is correct! Is your mouse pointer red when the majority of the 3 nearest neighbors are also red?
252252

253-
## Congrats!
253+
## Wrapping Up
254254

255255
Congrats on reaching the end of this project! You made a working KNN visualizer!
256256

@@ -265,11 +265,11 @@ Want to level it up? Try these bonus challenges:
265265
- Add your own style! Rather than red and green points, you could draw your points as wizard 🧙‍♂️ or warrior ⚔️ emojis (calling back to our original example). Or come up with your own theme! Could you do something interesting with the background?
266266
- KNN models can work with multi-class problems. Rather than simply red and green points, what if you had red, green, and blue points? Refactor your code so your visualization works with _any_ number of classes.
267267

268-
### Video Walkthrough
268+
### Project Walkthrough
269269

270270
<iframe width="560" height="315" src="https://www.youtube.com/embed/uq0kvzBX6uU?si=r4GbxX5BBG953-Ad" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
271271

272-
### Additional Resources
272+
### More Resources
273273

274274
- [Codédex's Machine Learning course](https://www.codedex.io/machine-learning)
275275
- [The KNN Algorithm](https://en.wikipedia.org/wiki/K-nearest_neighbors_algorithm)

0 commit comments

Comments
 (0)