spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jkbradley <...@git.apache.org>
Subject [GitHub] spark pull request #18281: [SPARK-21027][SPARK-21028][ML][PYTHON] Added tuna...
Date Tue, 13 Jun 2017 17:13:33 GMT
Github user jkbradley commented on a diff in the pull request:

    https://github.com/apache/spark/pull/18281#discussion_r121737343
  
    --- Diff: python/pyspark/ml/tests.py ---
    @@ -1229,7 +1229,35 @@ def test_output_columns(self):
                                              (2.0, Vectors.dense(0.5, 0.5))],
                                             ["label", "features"])
             lr = LogisticRegression(maxIter=5, regParam=0.01)
    -        ovr = OneVsRest(classifier=lr)
    +        ovr = OneVsRest(classifier=lr, parallelism=1)
    +        model = ovr.fit(df)
    +        output = model.transform(df)
    +        self.assertEqual(output.columns, ["label", "features", "prediction"])
    +
    +
    +class ParOneVsRestTests(SparkSessionTestCase):
    +
    +    def test_copy(self):
    --- End diff --
    
    What is this testing?


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


Mime
View raw message