Skip to content

Commit

Permalink
more clearly annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
Yanbo Liang committed Oct 30, 2014
1 parent 3d0bec1 commit 730d0a9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class RegressionMetrics(predictionAndObservations: RDD[(Double, Double)]) extend

/**
* Returns the explained variance regression score.
* explainedVarianceScore = 1 - variance(y - \hat{y}) / variance(y)
* explainedVariance = 1 - variance(y - \hat{y}) / variance(y)
* Reference: [[http://en.wikipedia.org/wiki/Explained_variation]]
*/
def explainedVariance: Double = {
Expand Down

0 comments on commit 730d0a9

Please sign in to comment.