rinuboney / clatern

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

Add new distance metrics #11

Closed rnowling closed 9 years ago

rnowling commented 9 years ago

The classifiers in Clatern currently default to Euclidean distance. We can make distance an optional parameter that takes a function and provide functions for additional distance metrics such as the Manhattan (L1) and cosine distances.