fit_regularized for linear models   rebase 1674

this is a rebased version of #1674

squashed into 1 commit to avoid having extra versions of csv files in repo