Skip to content

Commit

Permalink
explicit calls to param checks
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanCutler committed Feb 8, 2018
1 parent bbd2144 commit 339c793
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/pyspark/ml/wrapper.py
Expand Up @@ -119,10 +119,10 @@ def _transfer_params_to_java(self):
Transforms the embedded params to the companion Java object.
"""
for param in self.params:
if param in self._paramMap:
if self.isSet(param):
pair = self._make_java_param_pair(param, self._paramMap[param])
self._java_obj.set(pair)
if param in self._defaultParamMap:
if self.hasDefault(param):
pair = self._make_java_param_pair(param, self._defaultParamMap[param])
self._java_obj.setDefaultPair(pair)

Expand Down

0 comments on commit 339c793

Please sign in to comment.