You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by me...@apache.org on 2015/10/28 16:46:35 UTC
spark git commit: Typo in mllib-evaluation-metrics.md
Repository: spark
Updated Branches:
refs/heads/master 075ce4914 -> fd9e345ce
Typo in mllib-evaluation-metrics.md
Recall by threshold snippet was using "precisionByThreshold"
Author: Mageswaran.D <ma...@gmail.com>
Closes #9333 from Mageswaran1989/Typo_in_mllib-evaluation-metrics.md.
Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/fd9e345c
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/fd9e345c
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/fd9e345c
Branch: refs/heads/master
Commit: fd9e345ceeff385ba614a16d478097650caa98d0
Parents: 075ce49
Author: Mageswaran.D <ma...@gmail.com>
Authored: Wed Oct 28 08:46:30 2015 -0700
Committer: Xiangrui Meng <me...@databricks.com>
Committed: Wed Oct 28 08:46:30 2015 -0700
----------------------------------------------------------------------
docs/mllib-evaluation-metrics.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/spark/blob/fd9e345c/docs/mllib-evaluation-metrics.md
----------------------------------------------------------------------
diff --git a/docs/mllib-evaluation-metrics.md b/docs/mllib-evaluation-metrics.md
index 2270f7a..f73eff6 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>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org