aboutsummaryrefslogtreecommitdiff
path: root/docs/mllib-evaluation-metrics.md
diff options
context:
space:
mode:
authorMageswaran.D <mageswaran1989@gmail.com>2015-10-28 08:46:30 -0700
committerXiangrui Meng <meng@databricks.com>2015-10-28 08:46:30 -0700
commitfd9e345ceeff385ba614a16d478097650caa98d0 (patch)
tree0010706729a03a12ce216762a3438c7d7e122ba2 /docs/mllib-evaluation-metrics.md
parent075ce4914fdcbbcc7286c3c30cb940ed28d474d2 (diff)
downloadspark-fd9e345ceeff385ba614a16d478097650caa98d0.tar.gz
spark-fd9e345ceeff385ba614a16d478097650caa98d0.tar.bz2
spark-fd9e345ceeff385ba614a16d478097650caa98d0.zip
Typo in mllib-evaluation-metrics.md
Recall by threshold snippet was using "precisionByThreshold" Author: Mageswaran.D <mageswaran1989@gmail.com> Closes #9333 from Mageswaran1989/Typo_in_mllib-evaluation-metrics.md.
Diffstat (limited to 'docs/mllib-evaluation-metrics.md')
-rw-r--r--docs/mllib-evaluation-metrics.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/mllib-evaluation-metrics.md b/docs/mllib-evaluation-metrics.md
index 2270f7a34b..f73eff637d 100644
--- a/docs/mllib-evaluation-metrics.md
+++ b/docs/mllib-evaluation-metrics.md
@@ -141,7 +141,7 @@ precision.foreach { case (t, p) =>
}
// Recall by threshold
-val recall = metrics.precisionByThreshold
+val recall = metrics.recallByThreshold
recall.foreach { case (t, r) =>
println(s"Threshold: $t, Recall: $r")
}
@@ -1509,4 +1509,4 @@ print("Explained variance = %s" % metrics.explainedVariance)
{% endhighlight %}
</div>
-</div> \ No newline at end of file
+</div>