diff options
author | Holden Karau <holden@pigscanfly.ca> | 2015-10-20 16:51:32 -0700 |
---|---|---|
committer | Xiangrui Meng <meng@databricks.com> | 2015-10-20 16:51:32 -0700 |
commit | aea7142c9802d1e855443c01621ebc8d57be8c5e (patch) | |
tree | 83c051016b539f0bc80e3536171d3e63005f36a7 /python/pyspark/ml/tests.py | |
parent | da46b77afd13df8eb696e4612224ae29cc198c0b (diff) | |
download | spark-aea7142c9802d1e855443c01621ebc8d57be8c5e.tar.gz spark-aea7142c9802d1e855443c01621ebc8d57be8c5e.tar.bz2 spark-aea7142c9802d1e855443c01621ebc8d57be8c5e.zip |
[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 <holden@pigscanfly.ca>
Closes #9017 from holdenk/SPARK-10767-Make-pyspark-shared-params-codegen-more-consistent.
Diffstat (limited to 'python/pyspark/ml/tests.py')
-rw-r--r-- | python/pyspark/ml/tests.py | 8 |
1 files changed, 4 insertions, 4 deletions
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() |