aboutsummaryrefslogtreecommitdiff
path: root/mllib
diff options
context:
space:
mode:
authorOmede Firouz <ofirouz@palantir.com>2015-04-03 10:26:43 +0100
committerSean Owen <sowen@cloudera.com>2015-04-03 10:26:43 +0100
commitb52c7f9fc87a1b9a039724e1dac8b30554f75196 (patch)
tree6ac849fb49433469e2106f5b62409f26c38ba9b4 /mllib
parentb0d884f044fea1c954da77073f3556cd9ab1e922 (diff)
downloadspark-b52c7f9fc87a1b9a039724e1dac8b30554f75196.tar.gz
spark-b52c7f9fc87a1b9a039724e1dac8b30554f75196.tar.bz2
spark-b52c7f9fc87a1b9a039724e1dac8b30554f75196.zip
[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 <ofirouz@palantir.com> Closes #5338 from oefirouz/println and squashes the following commits: 3f3dbf4 [Omede Firouz] [MLLIB] Remove println
Diffstat (limited to 'mllib')
-rw-r--r--mllib/src/main/scala/org/apache/spark/ml/classification/LogisticRegression.scala1
1 files changed, 0 insertions, 1 deletions
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 21f61d80dd..49c00f7748 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
}