rinuboney / clatern

Machine Learning in Clojure
Eclipse Public License 1.0
67 stars 12 forks source link

Issue #6. Make kNN interface consistent with other classifiers #12

Closed rnowling closed 9 years ago

rnowling commented 9 years ago
  1. Changes signature of knn so that v (vector to classify) is not longer taken.
  2. knn now returns a kNN record that implements IFn. The record stores X, y, and k. The record's only function calls predict.
  3. Moved main code in knn to a namespace-private predict function