issues
search
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
Changes signature of
knn
so that
v
(vector to classify) is not longer taken.
knn
now returns a
kNN
record that implements
IFn
. The record stores
X
,
y
, and
k
. The record's only function calls
predict
.
Moved main code in
knn
to a namespace-private
predict
function
knn
so thatv
(vector to classify) is not longer taken.knn
now returns akNN
record that implementsIFn
. The record storesX
,y
, andk
. The record's only function callspredict
.knn
to a namespace-privatepredict
function