Github user mengxr commented on a diff in the pull request:
https://github.com/apache/spark/pull/6139#discussion_r30306082
--- Diff: python/pyspark/ml/param/_shared_params_code_gen.py ---
@@ -115,7 +118,7 @@ def get$Name(self):
("outputCol", "output column name", None),
("numFeatures", "number of features", None),
("checkpointInterval", "checkpoint interval (>= 1)", None),
- ("seed", "random seed", None),
+ ("seed", "random seed", "random.randint(0, sys.maxsize)"),
--- End diff --
I agree that setting the default seed to 42 globally is quite funny. But I
think it is nice to have a fixed seed for each component, so it is easy to
reproduce the result. For example, could you send the seed based on the hash
value of the class name?
---
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]