-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-20501] [ML] ML 2.2 QA: New Scala APIs, docs #17934
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
|
Test build #76742 has finished for PR 17934 at commit
|
| */ | ||
| @Since("2.2.0") | ||
| def setThreshold(value: Double): this.type = set(threshold, value) | ||
| setDefault(threshold -> 0.0) |
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 remove this?
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.
Typo, reverted, thanks.
| */ | ||
| @Since("1.4.0") | ||
| class StringIndexerModel ( | ||
| class StringIndexerModel private[ml] ( |
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.
Hmm, making this private now will break user code if it is used, no? It's unfortunate that it wasn't private before, but do we want to do this?
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 make this public by mistake, so I think we should fix this bug. AFAIK, this is the only model whose constructor is public, so there is little chance to break user code. And I think it makes sense to break user code by fixing bug. Thanks.
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 thought this was made public on purpose. StringIndexerModel is one case where it makes sense for users to create it manually (if they already have a list of the possible Strings).
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.
OK, I reverted back. Thanks.
| */ | ||
| @Experimental | ||
| @Since("2.2.0") | ||
| class ImputerModel private[ml]( |
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.
nit: should be a space between private[ml] and the (
MLnick
left a comment
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.
Thanks for this and picking up the oversights on since tags for Imputer.
I don't think we should be changing the threshold for SVC? It should be 0 no? cc @hhbyyh
|
Test build #76746 has finished for PR 17934 at commit
|
|
@MLnick Thanks for your kindly remind, the change for |
|
Test build #76751 has finished for PR 17934 at commit
|
| * Linear SVM Classifier</a> | ||
| * | ||
| * This binary classifier optimizes the Hinge Loss using the OWLQN optimizer. | ||
| * Only supports L2 regularization currently. |
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.
is this something should be mentioned in R too?
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.
@felixcheung Yeah, it should be. However, since SparkR exposed more MLlib APIs during 2.2 releasing cycle, I'm preparing a separate PR to audit new SparkR MLlib APIs which would include this update. Thanks.
|
Test build #76956 has finished for PR 17934 at commit
|
|
LGTM |
## What changes were proposed in this pull request? Review new Scala APIs introduced in 2.2. ## How was this patch tested? Existing tests. Author: Yanbo Liang <ybliang8@gmail.com> Closes #17934 from yanboliang/spark-20501. (cherry picked from commit dbe8163) Signed-off-by: Joseph K. Bradley <joseph@databricks.com>
## What changes were proposed in this pull request? Review new Scala APIs introduced in 2.2. ## How was this patch tested? Existing tests. Author: Yanbo Liang <ybliang8@gmail.com> Closes apache#17934 from yanboliang/spark-20501.
## What changes were proposed in this pull request? Review new Scala APIs introduced in 2.2. ## How was this patch tested? Existing tests. Author: Yanbo Liang <ybliang8@gmail.com> Closes apache#17934 from yanboliang/spark-20501.
What changes were proposed in this pull request?
Review new Scala APIs introduced in 2.2.
How was this patch tested?
Existing tests.