135
v1v2v3 (latest)

Simple one-pass algorithm for penalized linear regression with cross-validation on MapReduce

Abstract

In this paper, we propose a one-pass algorithm on MapReduce for penalized linear regression \[f_\lambda(\alpha, \beta) = \|Y - \alpha\mathbf{1} - X\beta\|_2^2 + p_{\lambda}(\beta)\] where α\alpha is the intercept which can be omitted depending on application; β\beta is the coefficients and pλp_{\lambda} is the penalized function with penalizing parameter λ\lambda. fλ(α,β)f_\lambda(\alpha, \beta) includes interesting classes such as Lasso, Ridge regression and Elastic-net. Compared to latest iterative distributed algorithms requiring multiple MapReduce jobs, our algorithm achieves huge performance improvement; moreover, our algorithm is exact compared to the approximate algorithms such as parallel stochastic gradient decent. Moreover, what our algorithm distinguishes with others is that it trains the model with cross validation to choose optimal λ\lambda instead of user specified one. Key words: penalized linear regression, lasso, elastic-net, ridge, MapReduce

View on arXiv
Comments on this paper