anujkhare / iregnet

7 stars 12 forks source link

Loglogistic distribution, tests for all, bug fix #24

Closed anujkhare closed 8 years ago

anujkhare commented 8 years ago

Added log-logistic distribution.

Fixed bug in calculation of the response because of ddg = 0 when the y values are very small. Now, it returns eta[i] if ddg[i]==0.

Compacted the tests using random data to functions, and added tests for (log) logistic, gaussian.

Also adds a debug flag to allow printing from inside the fit functions when set true.

Fixes #18