Github user yanboliang commented on a diff in the pull request:

    https://github.com/apache/spark/pull/11043#discussion_r51674846
  
    --- Diff: python/pyspark/ml/wrapper.py ---
    @@ -79,8 +79,9 @@ def _transfer_params_from_java(self):
             for param in self.params:
                 if self._java_obj.hasParam(param.name):
                     java_param = self._java_obj.getParam(param.name)
    -                value = _java2py(sc, 
self._java_obj.getOrDefault(java_param))
    -                self._paramMap[param] = value
    +                if self._java_obj.hasDefault(java_param):
    --- End diff --
    
    We should check by ```isDefined``` rather than ```hasDefault``` here.


---
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]

Reply via email to