Skip to content

Commit

Permalink
SROwen code review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Feynman Liang committed Jul 13, 2015
1 parent 08a0e1b commit 1a3d098
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -59,7 +59,7 @@ class RegressionMetrics(predictionAndObservations: RDD[(Double, Double)]) extend
val yMean = summary.mean(0)
predictionAndObservations.map {
case (prediction, _) => math.pow(prediction - yMean, 2)
}.reduce(_ + _)
}.sum()
}

/**
Expand Down

0 comments on commit 1a3d098

Please sign in to comment.