-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-7022][PySpark][ML] Add ML.Tuning.ParamGridBuilder to PySpark #5601
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
Conversation
|
Jenkins this is ok to test |
|
Test build #30616 has finished for PR 5601 at commit
|
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.
Return self so this could be chained.
|
Test build #30630 has finished for PR 5601 at commit
|
|
Test build #30647 has finished for PR 5601 at commit
|
|
Friendly bump for more comments :) |
|
It looks good to me. We need to run Jenkins again to make sure it doesn't conflict with recent changes to the pipeline API. |
|
test this please |
|
Test build #31312 has finished for PR 5601 at commit
|
|
test this please |
|
Test build #31457 has finished for PR 5601 at commit
|
|
Should I rebase and update this? I'm not sure why the build is failing. |
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.
Consider doing this
[dict(zip(self._param_grid.keys(), prod)) for prod in itertools.product(*self._param_grid.values())]
To avoid the overhead of lots of dictionary copies.
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.
+1 on this. Should we move self._param_grid.keys()/values() out for readability?
keys = self._param_grid.keys()
grid_values = self._param_grid.values()
return [dict(zip(keys, prod)) for prod in itertools.product(*grid_values)]|
Yea, you should try rebasing. It looks like you're not the only one running into this. https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/31639/console |
|
test this please |
|
Test build #31692 has finished for PR 5601 at commit
|
|
LGTM. I've merged this into master and I'll send a follow-up PR to implement what @justinuang suggested. |
as suggested by justinuang on #5601. Author: Xiangrui Meng <[email protected]> Closes #5873 from mengxr/SPARK-7329 and squashes the following commits: d08f9cf [Xiangrui Meng] simplify tests b7a7b9b [Xiangrui Meng] simplify grid build
Author: Omede Firouz <[email protected]> Author: Omede <[email protected]> Closes apache#5601 from oefirouz/paramgrid and squashes the following commits: c9e2481 [Omede Firouz] Make test a doctest 9a8ce22 [Omede] Fix linter issues 8b8a6d2 [Omede Firouz] [SPARK-7022][PySpark][ML] Add ML.Tuning.ParamGridBuilder to PySpark
as suggested by justinuang on apache#5601. Author: Xiangrui Meng <[email protected]> Closes apache#5873 from mengxr/SPARK-7329 and squashes the following commits: d08f9cf [Xiangrui Meng] simplify tests b7a7b9b [Xiangrui Meng] simplify grid build
Author: Omede Firouz <[email protected]> Author: Omede <[email protected]> Closes apache#5601 from oefirouz/paramgrid and squashes the following commits: c9e2481 [Omede Firouz] Make test a doctest 9a8ce22 [Omede] Fix linter issues 8b8a6d2 [Omede Firouz] [SPARK-7022][PySpark][ML] Add ML.Tuning.ParamGridBuilder to PySpark
as suggested by justinuang on apache#5601. Author: Xiangrui Meng <[email protected]> Closes apache#5873 from mengxr/SPARK-7329 and squashes the following commits: d08f9cf [Xiangrui Meng] simplify tests b7a7b9b [Xiangrui Meng] simplify grid build
Author: Omede Firouz <[email protected]> Author: Omede <[email protected]> Closes apache#5601 from oefirouz/paramgrid and squashes the following commits: c9e2481 [Omede Firouz] Make test a doctest 9a8ce22 [Omede] Fix linter issues 8b8a6d2 [Omede Firouz] [SPARK-7022][PySpark][ML] Add ML.Tuning.ParamGridBuilder to PySpark
as suggested by justinuang on apache#5601. Author: Xiangrui Meng <[email protected]> Closes apache#5873 from mengxr/SPARK-7329 and squashes the following commits: d08f9cf [Xiangrui Meng] simplify tests b7a7b9b [Xiangrui Meng] simplify grid build
No description provided.