Skip to content

Commit f0e9a32

Browse files
committed
kmeans: fix initialisation values in the example
1 parent cdbd9f6 commit f0e9a32

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

help/fluid.kmeans-help.pd

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,6 @@
300300
#X msg 300 339 clear \, setmeans help.kmeans.3.means, f 22;
301301
#X obj 477 402 cnv 15 15 15 empty empty empty 20 12 0 14 #c6ffc7 #404040 0;
302302
#X msg 302 397 fitpredict help.kmeans.3.data help.kmeans.3.labels, f 22;
303-
#X msg 298 242 0 0.1 0.1 \, 1 0.2 0.2 \, 2 0.3 0.3 \, 3 0.4 0.4 \, bang;
304303
#X obj 25 156 cnv 15 15 15 empty empty empty 20 12 0 14 #c6ffc7 #404040 0;
305304
#X text 25 155 1) Choose a dataset, f 29;
306305
#N canvas 1738 -676 594 552 choosedataset 0;
@@ -360,6 +359,7 @@
360359
#X text 296 208 2) Instead of learning the "means" from scratch we can seed the algorithm with starting points to work from., f 54;
361360
#X text 404 497 fluid.kmeans~ can converge on similar clustering even with extreme means set as the seed. By keeping the iterations low it is more obvious how it affects the clustering process., f 38;
362361
#X text 345 812 You will notice that after one interation \, the space is roughly around the 4 means that were set in step 2 This means that we can "seed" kmeans to find certain clusters rather than letting it come to its own conclusions from a random starting point., f 47;
362+
#X msg 298 242 0 0.1 0.1 \, 1 0.9 0.1 \, 2 0.1 0.9 \, 3 0.9 0.9 \, bang;
363363
#X connect 1 0 5 0;
364364
#X connect 3 0 10 0;
365365
#X connect 5 0 7 0;
@@ -373,9 +373,9 @@
373373
#X connect 13 0 12 0;
374374
#X connect 17 0 1 0;
375375
#X connect 19 0 1 0;
376-
#X connect 20 0 24 0;
377-
#X connect 23 0 9 0;
378-
#X connect 24 0 2 0;
376+
#X connect 22 0 9 0;
377+
#X connect 23 0 2 0;
378+
#X connect 30 0 23 0;
379379
#X restore 490 804 pd accessing_the_means_1;
380380
#N canvas 129 86 700 956 accessing_the_means_2 0;
381381
#X obj 18 19 cnv 15 660 42 empty empty fluid.kmeans 1 22 0 36 #4ba3fb #ffffff 0;
@@ -403,7 +403,7 @@
403403
#X msg 328 238 getmeans help.kmeans.4.means, f 19;
404404
#X text 489 237 3) Retrieve the means that fluid.kmeans learned and store in a dataset, f 25;
405405
#X obj 451 572 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc #000000 #000000;
406-
#N canvas 1566 23 482 562 plot_means 0;
406+
#N canvas 1566 44 482 562 plot_means 0;
407407
#X obj 35 56 inlet;
408408
#X obj 137 60 fluid.dataset help.kmeans.4.means;
409409
#X obj 35 137 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc #000000 #000000;
@@ -422,7 +422,7 @@
422422
#X obj 70 386 list fromsymbol;
423423
#X obj 36 443 list append;
424424
#X msg 36 480 setpoint \$1-mean \$2 \$3 10 \$4;
425-
#X obj 70 410 - 47;
425+
#X obj 70 410 - 48;
426426
#X connect 0 0 2 0;
427427
#X connect 2 0 3 0;
428428
#X connect 3 0 5 0;

0 commit comments

Comments
 (0)