Uh oh!
There was an error while loading. Please reload this page.
[SPARK-14644][ML][PYSPARK] Turn Binary param into a shared param - #12404
[SPARK-14644][ML][PYSPARK] Turn Binary param into a shared param#12404holdenk wants to merge 5 commits into
Conversation
SparkQA
commented
Apr 15, 2016
Test build #55872 has finished for PR 12404 at commit
|
| class HasBinary(Params): | ||
| """ | ||
| Mixin for param binary: If True, all non zero results are set to 1. This is useful for discrete probabilistic models that model binary events rather than integer counts. Default False. |
There was a problem hiding this comment.
how come this didn't fail our style checker? did we break the pep8 checker?
There was a problem hiding this comment.
From toxi.ini we've excluded cloudpickle.py,heapq3.py, and shared.py, we've also done similar exclusions on the Scala side for the auto generated params.
MLnick
commented
Apr 15, 2016
Hey @holdenk, in #12079 (comment) and #12308 (comment), we decided to keep them separate for now, since the doc for So unless we can easily have different doc string, I think it might be best to not separate out |
holdenk
commented
Apr 15, 2016
So I thought the unified doc string of:
might make sense in the two cases where we are using it (since |
MLnick
commented
Apr 15, 2016
ah - sorry I missed that. Ok, yeah this makes sense if we unify the doc string appropriately. Perhaps something like |
holdenk
commented
Apr 15, 2016
Sure that sounds like a clearer docstring :) |
jkbradley
commented
Apr 15, 2016
I prefer to keep them separate. There isn't much benefit to combining 2 instances, and the doc becomes a bit less clear. |
MLnick
commented
Apr 15, 2016
Fair enough. We can revisit if more estimators use the param, or if we add
|
holdenk
commented
Apr 15, 2016
Sounds good if people prefer to keep them separate I'll close this out. |
SparkQA
commented
Apr 15, 2016
Test build #55961 has finished for PR 12404 at commit
|
What changes were proposed in this pull request?
Change the binary param into a shared param.
How was this patch tested?
Existing unit tests