-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-20707] [ML] ML deprecated APIs should be removed in major release. #17946
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
| pyspark.ml.util module | ||
| ---------------------------- | ||
|
|
||
| .. automodule:: pyspark.ml.util |
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.
The original PySpark miss out docs of pyspark.ml.util module which includes MLWriter and MLReader.
| /** | ||
| * Sets the Spark SQLContext to use for saving/loading. | ||
| * | ||
| * @deprecated Use session instead. This method will be removed in 3.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.
Add this can make Scala MLWriter and MLReader produce correct deprecated annotation, just like the screenshot in PR description.
|
Test build #76794 has finished for PR 17946 at commit
|
## What changes were proposed in this pull request? Before 2.2, MLlib keep to remove APIs deprecated in last feature/minor release. But from Spark 2.2, we decide to remove deprecated APIs in a major release, so we need to change corresponding annotations to tell users those will be removed in 3.0. Meanwhile, this fixed bugs in ML documents. The original ML docs can't show deprecated annotations in ```MLWriter``` and ```MLReader``` related class, we correct it in this PR. Before:  After:  ## How was this patch tested? Existing tests. Author: Yanbo Liang <[email protected]> Closes #17946 from yanboliang/spark-20707. (cherry picked from commit d4022d4) Signed-off-by: Yanbo Liang <[email protected]>
|
Since this blocks 2.2 release, I'll merge it into master and branch-2.2. If anyone has more comments, I can address them in follow-up work. Thanks. |
|
LGTM |
## What changes were proposed in this pull request? Before 2.2, MLlib keep to remove APIs deprecated in last feature/minor release. But from Spark 2.2, we decide to remove deprecated APIs in a major release, so we need to change corresponding annotations to tell users those will be removed in 3.0. Meanwhile, this fixed bugs in ML documents. The original ML docs can't show deprecated annotations in ```MLWriter``` and ```MLReader``` related class, we correct it in this PR. Before:  After:  ## How was this patch tested? Existing tests. Author: Yanbo Liang <[email protected]> Closes apache#17946 from yanboliang/spark-20707.
## What changes were proposed in this pull request? Before 2.2, MLlib keep to remove APIs deprecated in last feature/minor release. But from Spark 2.2, we decide to remove deprecated APIs in a major release, so we need to change corresponding annotations to tell users those will be removed in 3.0. Meanwhile, this fixed bugs in ML documents. The original ML docs can't show deprecated annotations in ```MLWriter``` and ```MLReader``` related class, we correct it in this PR. Before:  After:  ## How was this patch tested? Existing tests. Author: Yanbo Liang <[email protected]> Closes apache#17946 from yanboliang/spark-20707.
What changes were proposed in this pull request?
Before 2.2, MLlib keep to remove APIs deprecated in last feature/minor release. But from Spark 2.2, we decide to remove deprecated APIs in a major release, so we need to change corresponding annotations to tell users those will be removed in 3.0.
Meanwhile, this fixed bugs in ML documents. The original ML docs can't show deprecated annotations in
MLWriterandMLReaderrelated class, we correct it in this PR.Before:

After:

How was this patch tested?
Existing tests.