Github user rxin commented on a diff in the pull request:
https://github.com/apache/spark/pull/12404#discussion_r59826196
--- Diff: python/pyspark/ml/param/shared.py ---
@@ -583,6 +583,31 @@ def getVarianceCol(self):
return self.getOrDefault(self.varianceCol)
+class HasBinary(Params):
+ """
+ Mixin for param binary: If True, all non zero results are set to 1.
This is useful for discrete probabilistic models that model binary events
rather than integer counts. Default False.
--- End diff --
how come this didn't fail our style checker? did we break the pep8 checker?
---
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]