721
edits
Line 23: | Line 23: | ||
=Description of the classifier code= | =Description of the classifier code= | ||
There are a few new elements that we added to our code this week. We added a new class called 'KMeans'. Inside this class will be the guts of our classifier. To be able to successfully classify a new point ( | There are a few new elements that we added to our code this week. We added a new class called 'KMeans'. Inside this class will be the guts of our classifier. To be able to successfully classify a new point (a sound), the classifier actually only needs to know the <code>centroid of each class</code> and a way to <code>find the closest centroid</code> to our new point. | ||
* it needs to know all given points ( | |||
* for every point it needs to know to which | * it needs to know all given points (=measurements of sounds) | ||
* for every point it needs to know to which class it belongs (=classLabels) | |||
=Homework= | =Homework= |