Write a MapReduce algorithm for the closed-form OLS solution when the number of rows n is far too large for one machine, the number of features k is small and you have m machines.
Unlock detailed company stats for this questionUpgrade
You have a data matrix X of shape (n, k) and labels Y of shape (n, 1) and want the ordinary least squares fit. n is far too large for one machine, k is small, and m machines can share the work. Write a MapReduce algorithm that computes the closed-form solution.
Community answers
No answers contributed by the community yet.
Related questions
You have three lists of n numbers. Choose one number from each so that the largest minus the smallest of the three is as small as possible. What algorithm do you use?What is the closed-form solution of OLS linear regression? If the design matrix is large because there are many features, how do you speed up the calculation?Related courses

Course

Course
