Repository: spark
Updated Branches:
  refs/heads/master b0d884f04 -> b52c7f9fc


[MLLIB] Remove println in LogisticRegression.scala

There's no corresponding printing in linear regression. Here was my previous PR 
(something weird happened and I can't reopen it) 
https://github.com/apache/spark/pull/5272

Author: Omede Firouz <ofir...@palantir.com>

Closes #5338 from oefirouz/println and squashes the following commits:

3f3dbf4 [Omede Firouz] [MLLIB] Remove println


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/b52c7f9f
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/b52c7f9f
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/b52c7f9f

Branch: refs/heads/master
Commit: b52c7f9fc87a1b9a039724e1dac8b30554f75196
Parents: b0d884f
Author: Omede Firouz <ofir...@palantir.com>
Authored: Fri Apr 3 10:26:43 2015 +0100
Committer: Sean Owen <so...@cloudera.com>
Committed: Fri Apr 3 10:26:43 2015 +0100

----------------------------------------------------------------------
 .../org/apache/spark/ml/classification/LogisticRegression.scala     | 1 -
 1 file changed, 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/b52c7f9f/mllib/src/main/scala/org/apache/spark/ml/classification/LogisticRegression.scala
----------------------------------------------------------------------
diff --git 
a/mllib/src/main/scala/org/apache/spark/ml/classification/LogisticRegression.scala
 
b/mllib/src/main/scala/org/apache/spark/ml/classification/LogisticRegression.scala
index 21f61d8..49c00f7 100644
--- 
a/mllib/src/main/scala/org/apache/spark/ml/classification/LogisticRegression.scala
+++ 
b/mllib/src/main/scala/org/apache/spark/ml/classification/LogisticRegression.scala
@@ -180,7 +180,6 @@ class LogisticRegressionModel private[ml] (
    * The behavior of this can be adjusted using [[threshold]].
    */
   override protected def predict(features: Vector): Double = {
-    println(s"LR.predict with threshold: ${paramMap(threshold)}")
     if (score(features) > paramMap(threshold)) 1 else 0
   }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to