-
Notifications
You must be signed in to change notification settings - Fork 28.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SPARK-13153][PySpark] ML persistence failed when handle no default value parameter #11043
[SPARK-13153][PySpark] ML persistence failed when handle no default value parameter #11043
Conversation
@@ -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): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should check by isDefined
rather than hasDefault
here.
ping @mengxr @jkbradley |
It's OK now and ready to launch test. |
ok to test |
LGTM pending Jenins |
Test build #51161 has finished for PR 11043 at commit
|
…alue parameter Fix this defect by check default value exist or not. yanboliang Please help to review. Author: Tommy YU <tummyyu@163.com> Closes #11043 from Wenpei/spark-13153-handle-param-withnodefaultvalue. (cherry picked from commit d3e2e20) Signed-off-by: Xiangrui Meng <meng@databricks.com>
Merged into master and branch-1.6. Thanks! |
Fix this defect by check default value exist or not.
@yanboliang Please help to review.