Hi, Im trying to add my own data to the KNN classifier, this is my attempt.
let grid = [
[1, 2],
[3, 4]
];
let knnClassifier = ml5.KNNClassifier();
console.log('trying to add to classifier');
addExample('left');
function addExample(label) {
knnClassifier.addExample(grid, label);
}
Hi, Im trying to add my own data to the KNN classifier, this is my attempt.
Which gives me an error.
The example code you provide saids to:
So I figgured it wants an array of some type.