Return-Path: X-Original-To: apmail-spark-commits-archive@minotaur.apache.org Delivered-To: apmail-spark-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BA89418974 for ; Wed, 28 Oct 2015 15:46:35 +0000 (UTC) Received: (qmail 19322 invoked by uid 500); 28 Oct 2015 15:46:35 -0000 Delivered-To: apmail-spark-commits-archive@spark.apache.org Received: (qmail 19299 invoked by uid 500); 28 Oct 2015 15:46:35 -0000 Mailing-List: contact commits-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list commits@spark.apache.org Received: (qmail 19288 invoked by uid 99); 28 Oct 2015 15:46:35 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Oct 2015 15:46:35 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 6D44DDFCCE; Wed, 28 Oct 2015 15:46:35 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: meng@apache.org To: commits@spark.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: spark git commit: Typo in mllib-evaluation-metrics.md Date: Wed, 28 Oct 2015 15:46:35 +0000 (UTC) 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 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 Authored: Wed Oct 28 08:46:30 2015 -0700 Committer: Xiangrui Meng 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 %} - \ No newline at end of file + --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org For additional commands, e-mail: commits-help@spark.apache.org