spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "zhengruifeng (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SPARK-15398) Update the warning message to recommend ML usage
Date Thu, 19 May 2016 06:08:12 GMT

     [ https://issues.apache.org/jira/browse/SPARK-15398?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

zhengruifeng updated SPARK-15398:
---------------------------------
    Description: 
update the warning message in example, and recommend user to use ML instead of MLlib
from
{code}
  def showWarning() {
    System.err.println(
      """WARN: This is a naive implementation of Logistic Regression and is given as an example!
        |Please use either org.apache.spark.mllib.classification.LogisticRegressionWithSGD
or
        |org.apache.spark.mllib.classification.LogisticRegressionWithLBFGS
        |for more conventional use.
      """.stripMargin)
  }
{code}
to
{code}
  def showWarning() {
    System.err.println(
      """WARN: This is a naive implementation of Logistic Regression and is given as an example!
        |Please use org.apache.spark.ml.classification.LogisticRegression
        |for more conventional use.
      """.stripMargin)
  }
{code}

  was:
update the warning message in example, and recommend user to use ML instead of MLlib
from
{{{code}}}
  def showWarning() {
    System.err.println(
      """WARN: This is a naive implementation of Logistic Regression and is given as an example!
        |Please use either org.apache.spark.mllib.classification.LogisticRegressionWithSGD
or
        |org.apache.spark.mllib.classification.LogisticRegressionWithLBFGS
        |for more conventional use.
      """.stripMargin)
  }
{{{code}}}
to
{{code}}
  def showWarning() {
    System.err.println(
      """WARN: This is a naive implementation of Logistic Regression and is given as an example!
        |Please use org.apache.spark.ml.classification.LogisticRegression
        |for more conventional use.
      """.stripMargin)
  }
{{code}}


> Update the warning message to recommend ML usage
> ------------------------------------------------
>
>                 Key: SPARK-15398
>                 URL: https://issues.apache.org/jira/browse/SPARK-15398
>             Project: Spark
>          Issue Type: Improvement
>          Components: ML
>            Reporter: zhengruifeng
>            Priority: Minor
>
> update the warning message in example, and recommend user to use ML instead of MLlib
> from
> {code}
>   def showWarning() {
>     System.err.println(
>       """WARN: This is a naive implementation of Logistic Regression and is given as
an example!
>         |Please use either org.apache.spark.mllib.classification.LogisticRegressionWithSGD
or
>         |org.apache.spark.mllib.classification.LogisticRegressionWithLBFGS
>         |for more conventional use.
>       """.stripMargin)
>   }
> {code}
> to
> {code}
>   def showWarning() {
>     System.err.println(
>       """WARN: This is a naive implementation of Logistic Regression and is given as
an example!
>         |Please use org.apache.spark.ml.classification.LogisticRegression
>         |for more conventional use.
>       """.stripMargin)
>   }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message