From aea7142c9802d1e855443c01621ebc8d57be8c5e Mon Sep 17 00:00:00 2001 From: Holden Karau Date: Tue, 20 Oct 2015 16:51:32 -0700 Subject: [SPARK-10767][PYSPARK] Make pyspark shared params codegen more consistent Namely "." shows up in some places in the template when using the param docstring and not in others Author: Holden Karau Closes #9017 from holdenk/SPARK-10767-Make-pyspark-shared-params-codegen-more-consistent. --- python/pyspark/ml/tests.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'python/pyspark/ml/tests.py') diff --git a/python/pyspark/ml/tests.py b/python/pyspark/ml/tests.py index 648fa8858f..6a2577d66f 100644 --- a/python/pyspark/ml/tests.py +++ b/python/pyspark/ml/tests.py @@ -163,7 +163,7 @@ class ParamTests(PySparkTestCase): testParams = TestParams() maxIter = testParams.maxIter self.assertEqual(maxIter.name, "maxIter") - self.assertEqual(maxIter.doc, "max number of iterations (>= 0)") + self.assertEqual(maxIter.doc, "max number of iterations (>= 0).") self.assertTrue(maxIter.parent == testParams.uid) def test_params(self): @@ -197,9 +197,9 @@ class ParamTests(PySparkTestCase): self.assertEqual( testParams.explainParams(), - "\n".join(["inputCol: input column name (undefined)", - "maxIter: max number of iterations (>= 0) (default: 10, current: 100)", - "seed: random seed (default: 41, current: 43)"])) + "\n".join(["inputCol: input column name. (undefined)", + "maxIter: max number of iterations (>= 0). (default: 10, current: 100)", + "seed: random seed. (default: 41, current: 43)"])) def test_hasseed(self): noSeedSpecd = TestParams() -- cgit v1.2.3