Skip to content

Instantly share code, notes, and snippets.

Avatar

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) {
View keybase.md

Keybase proof

I hereby claim:

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

To claim this, I am signing this object: