This runs the KNN classification algorithm that accepts 2 distance matrices; finding the nearest neighbors from both and returning the majority result
1 | knn_combine(data, first_distance, second_distance, training_labels, k)
|
data |
The matrix containing the data to classify |
first_distance |
The first distance matrix |
second_distance |
The second distance matrix |
training_labels |
The classification labels to compare to |
K |
The value of K |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.