Github user jkbradley commented on a diff in the pull request:
https://github.com/apache/spark/pull/10216#discussion_r50784366
--- Diff: python/pyspark/ml/param/__init__.py ---
@@ -40,6 +40,15 @@ def __init__(self, parent, name, doc, expectedType=None):
self.doc = str(doc)
self.expectedType = expectedType
+ def _copy_new_parent(self, parent):
--- End diff --
I hope this can be implemented in class Params instead of Param. In
Params, if we can get a list of all class attributes of type Param, then we can
call this method on them (as is currently done manually by each init method).
---
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]