Github user BryanCutler commented on a diff in the pull request:
https://github.com/apache/spark/pull/12790#discussion_r75229691
--- Diff: python/pyspark/ml/tests.py ---
@@ -230,6 +230,15 @@ def test_pipeline(self):
self.assertEqual(5, transformer3.dataset_index)
self.assertEqual(6, dataset.index)
+ def test_identity_pipeline(self):
+ dataset = MockDataset()
+
+ def doTransform(pipeline):
+ pipeline_model = pipeline.fit(dataset)
+ return pipeline_model.transform(dataset)
+ self.assertEqual(dataset.index, doTransform(Pipeline()).index)
+ self.assertEqual(dataset.index,
doTransform(Pipeline(stages=[])).index)
--- End diff --
Maybe, but these are no different than any other param and we usually don't
test that we can get/set each one. I think it's safe to assume that
`setParams` will set the given value and `getStages` will return the value set
or default.
---
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 [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]