rinuboney / clatern

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

Make intercept calculation optional in Linear Regression. Add test and precondition #4

Closed rnowling closed 9 years ago

rnowling commented 9 years ago

Following the approach used in scikit-learn, I made the calculation of the intercept optional in the Linear Regression. I added a test covering both cases and a precondition that verifies that we have enough vectors.

rnowling commented 9 years ago

The centering functionality is already provided in pre-processing.