-
- Downloads
[SPARK-14937][ML][DOCUMENT] spark.ml LogisticRegression sqlCtx in scala is...
[SPARK-14937][ML][DOCUMENT] spark.ml LogisticRegression sqlCtx in scala is inconsistent with java and python ## What changes were proposed in this pull request? In spark.ml document, the LogisticRegression scala example uses sqlCtx. It is inconsistent with java and python examples which use sqlContext. In addition, a user can't copy & paste to run the example in spark-shell as sqlCtx doesn't exist in spark-shell while sqlContext exists. Change the scala example referred by the spark.ml example. ## How was this patch tested? Compile the example scala file and it passes compilation. Author: wm624@hotmail.com <wm624@hotmail.com> Closes #12717 from wangmiao1981/doc.
Showing
- examples/src/main/scala/org/apache/spark/examples/ml/LinearRegressionWithElasticNetExample.scala 2 additions, 2 deletions...k/examples/ml/LinearRegressionWithElasticNetExample.scala
- examples/src/main/scala/org/apache/spark/examples/ml/LogisticRegressionSummaryExample.scala 3 additions, 3 deletions.../spark/examples/ml/LogisticRegressionSummaryExample.scala
- examples/src/main/scala/org/apache/spark/examples/ml/LogisticRegressionWithElasticNetExample.scala 2 additions, 2 deletions...examples/ml/LogisticRegressionWithElasticNetExample.scala
Please register or sign in to comment