Github user jaceklaskowski commented on a diff in the pull request:

    https://github.com/apache/spark/pull/14035#discussion_r69390173
  
    --- Diff: 
mllib/src/test/scala/org/apache/spark/ml/classification/MultilayerPerceptronClassifierSuite.scala
 ---
    @@ -116,7 +117,7 @@ class MultilayerPerceptronClassifierSuite
         // the input seed is somewhat magic, to make this test pass
         val rdd = sc.parallelize(generateMultinomialLogisticInput(
           coefficients, xMean, xVariance, true, nPoints, 1), 2)
    -    val dataFrame = spark.createDataFrame(rdd).toDF("label", "features")
    +    val dataFrame = rdd.toDF("label", "features")
    --- End diff --
    
    Could we merge this line with 118? I don't think 118 needs `sc.parallelize`.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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

Reply via email to