Github user jkbradley commented on a diff in the pull request:
https://github.com/apache/spark/pull/6139#discussion_r30625040
--- Diff: python/pyspark/ml/param/__init__.py ---
@@ -147,10 +147,10 @@ def hasParam(self, paramName):
def getOrDefault(self, param):
"""
Gets the value of a param in the user-supplied param map or its
- default value. Raises an error if either is set.
+ default value. Raises an error if neither is set.
"""
param = self._resolveParam(param)
- if param in self._paramMap:
+ if param in self._paramMap and self.paramMap[param]:
--- End diff --
Was this merged incorrectly? This line should not be modified, I believe.
---
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]