721
edits
Line 28: | Line 28: | ||
* all our given points (=measurements of sounds) | * all our given points (=measurements of sounds) | ||
* and to which class they belong (=classLabels) | * and to which class they belong (=classLabels) | ||
[[File:point_label_idx.png|400px]] | |||
We will feed this data into the classifier via two vectors. The first vector contains all the points and the second one contains the class labels. Note that the indices of the points and class labels should be the same. Such that, when we traverse the vector of points, we can always find out which class it belongs to, by just looking at the same position in the vector with class labels. | We will feed this data into the classifier via two vectors. The first vector contains all the points and the second one contains the class labels. Note that the indices of the points and class labels should be the same. Such that, when we traverse the vector of points, we can always find out which class it belongs to, by just looking at the same position in the vector with class labels. | ||