rinuboney / clatern

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

Fix linear regression to handle vectors correctly. Add support for p… #23

Closed rnowling closed 9 years ago

rnowling commented 9 years ago

…redictions on vectors or matrix. Move float-equals to new test-utils module. Add vector-equals. Update linear regression test to incorporate vector and matrix predictions. Closes #15 and #21.

This version preserves the position of the intercept as the first element in the coefficients. We now wrap vectors as matrices, perform the multiple, and unpack the results.