Skip to content

Instantly share code, notes, and snippets.


Robert Jones Robert-G-J

  • Bristol, UK
View GitHub Profile
View knnClassifier.js
const harness = require("../harness/harness.js");
class Classifier {
constructor(knn) {
this.trainingData = [];
this.trainingLabels = [];
this.knn = knn;
fit(trainingData, trainingLabels) {

Keybase proof

I hereby claim:

  • I am robert-g-j on github.
  • I am robgj ( on keybase.
  • I have a public key ASDbFXTgshpGeDrPVvpXVcOmxv_U-yqW60JmIP-yY2xKKQo

To claim this, I am signing this object: