Github user HyukjinKwon commented on a diff in the pull request:
https://github.com/apache/spark/pull/19535#discussion_r145648171
--- Diff: python/pyspark/mllib/classification.py ---
@@ -311,7 +311,7 @@ def train(cls, data, iterations=100, step=1.0,
miniBatchFraction=1.0,
"""
warnings.warn(
"Deprecated in 2.0.0. Use ml.classification.LogisticRegression
or "
- "LogisticRegressionWithLBFGS.")
+ "LogisticRegressionWithLBFGS.", DeprecationWarning)
--- End diff --
Another example:

---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]