diff options
author | Zheng RuiFeng <ruifengz@foxmail.com> | 2016-05-19 23:26:11 -0700 |
---|---|---|
committer | Xiangrui Meng <meng@databricks.com> | 2016-05-19 23:26:11 -0700 |
commit | 47a2940da97caa55bbb8bb8ec1d51c9f6d5041c6 (patch) | |
tree | 2cad1dcab525990a7b18e6800634e45edcc36197 /bin | |
parent | 4c7a6b385c79f4de07a89495afce4f8e73b06086 (diff) | |
download | spark-47a2940da97caa55bbb8bb8ec1d51c9f6d5041c6.tar.gz spark-47a2940da97caa55bbb8bb8ec1d51c9f6d5041c6.tar.bz2 spark-47a2940da97caa55bbb8bb8ec1d51c9f6d5041c6.zip |
[SPARK-15398][ML] Update the warning message to recommend ML usage
## What changes were proposed in this pull request?
MLlib are not recommended to use, and some methods are even deprecated.
Update the warning message to recommend ML usage.
```
def showWarning() {
System.err.println(
"""WARN: This is a naive implementation of Logistic Regression and is given as an example!
|Please use either org.apache.spark.mllib.classification.LogisticRegressionWithSGD or
|org.apache.spark.mllib.classification.LogisticRegressionWithLBFGS
|for more conventional use.
""".stripMargin)
}
```
To
```
def showWarning() {
System.err.println(
"""WARN: This is a naive implementation of Logistic Regression and is given as an example!
|Please use org.apache.spark.ml.classification.LogisticRegression
|for more conventional use.
""".stripMargin)
}
```
## How was this patch tested?
local build
Author: Zheng RuiFeng <ruifengz@foxmail.com>
Closes #13190 from zhengruifeng/update_recd.
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions