Closed aisthesis closed 8 years ago
Note that the regularization formula changes depending on whether or not the constant feature is present. If there is a constant feature, you need to write a 0 at [0, 0] in the identity matrix. Otherwise, you can use the identity matrix with no changes.
have you started work on this?
yes. I'm having trouble getting test data to verify that I have the correct equation, though.
https://github.com/aisthesis/pynance/blob/linreg/pynance/learn/linreg.py
I think the formula is right, but I can't find adequate unit tests for non-zero regularization.
Add support for regularized linear regression. Cf. http://stackoverflow.com/questions/27476933/numpy-linear-regression-with-regularization
This would be a nice shortcut even though we don't want to support more complex machine learning algorithms.