Skip to content

Commit 556285e

Browse files
authored
Update build-a-k-nearest-neighbor-model-with-p5js.mdx
1 parent a82dad5 commit 556285e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class Point {
8383
constructor() {
8484
this.x = Math.random() * width; // A random value along the x axis
8585
this.y = Math.random() * height; // A random value along the y axis
86-
this.class = floor(Math.random() * 2) // A random class: either 0 or 1
86+
this.class = floor(Math.random() * 2) // A random class: either 0 or 1
8787
}
8888

8989
display() {

0 commit comments

Comments
 (0)