-
Notifications
You must be signed in to change notification settings - Fork 28.3k
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-32310][ML][PySpark] ML params default value parity in feature and tuning #29153
Conversation
Test build #126117 has finished for PR 29153 at commit
|
Test build #126220 has finished for PR 29153 at commit
|
Test build #126265 has finished for PR 29153 at commit
|
Test build #126307 has finished for PR 29153 at commit
|
retest this please |
Test build #126343 has finished for PR 29153 at commit
|
Looks good if there are no API or behavior changes (that are not bug fixes). |
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.
I reviewed twice, it LGTM if related places were all changed.
retest this please |
@@ -2391,7 +2404,7 @@ def __repr__(self): | |||
|
|||
|
|||
class _FactorizationMachinesParams(_PredictorParams, HasMaxIter, HasStepSize, HasTol, | |||
HasSolver, HasSeed, HasFitIntercept, HasRegParam): | |||
HasSolver, HasSeed, HasFitIntercept, HasRegParam, HasWeightCol): |
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.
Why add HasWeightCol
? Seems you don't add a default of weight col?
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.
@viirya Thanks for reviewing. I added HasWeightCol
in FactorizationMachinesParams
in Scala in #28960 when I added FMClassificationSummary
. ClassificationSummary
needs weightCol, https://github.com/apache/spark/blob/master/mllib/src/main/scala/org/apache/spark/ml/classification/ClassificationSummary.scala#L48. FMClassifier/Regressor
doesn't support instance weight yet, so I didn't add setWeightCol
or set default value in FactorizationMachinesParams
.
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.
Looks good except for one question.
Test build #126724 has finished for PR 29153 at commit
|
I think you can merge when ready |
Merged to master. Thank you all for reviewing! |
What changes were proposed in this pull request?
set params default values in trait Params for feature and tuning in both Scala and Python.
Why are the changes needed?
Make ML has the same default param values between estimator and its corresponding transformer, and also between Scala and Python.
Does this PR introduce any user-facing change?
No
How was this patch tested?
Existing and modified tests