Skip to content

Commit 730d0a9

Browse files
author
Yanbo Liang
committed
more clearly annotation
1 parent 3d0bec1 commit 730d0a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mllib/src/main/scala/org/apache/spark/mllib/evaluation/RegressionMetrics.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class RegressionMetrics(predictionAndObservations: RDD[(Double, Double)]) extend
4747

4848
/**
4949
* Returns the explained variance regression score.
50-
* explainedVarianceScore = 1 - variance(y - \hat{y}) / variance(y)
50+
* explainedVariance = 1 - variance(y - \hat{y}) / variance(y)
5151
* Reference: [[http://en.wikipedia.org/wiki/Explained_variation]]
5252
*/
5353
def explainedVariance: Double = {

0 commit comments

Comments
 (0)