Implement a function to compute (RMSE) given an RDD of (label, prediction) tuples:
Test this function on an example RDD.
RMSE =
1
n
i=1
(Yi - y)²
Fig: 1