aboutsummaryrefslogtreecommitdiff
path: root/docs/ml-classification-regression.md
diff options
context:
space:
mode:
authorwm624@hotmail.com <wm624@hotmail.com>2016-12-07 18:12:49 -0800
committerJoseph K. Bradley <joseph@databricks.com>2016-12-07 18:12:49 -0800
commitaad11209eb4db585f991ba09d08d90576f315bb4 (patch)
tree6e9b35537fc6c323f8053d232b95a24211c72820 /docs/ml-classification-regression.md
parentbec0a9217b896a596c0a0919888da34589fc720d (diff)
downloadspark-aad11209eb4db585f991ba09d08d90576f315bb4.tar.gz
spark-aad11209eb4db585f991ba09d08d90576f315bb4.tar.bz2
spark-aad11209eb4db585f991ba09d08d90576f315bb4.zip
[SPARK-18633][ML][EXAMPLE] Add multiclass logistic regression summary python example and document
## What changes were proposed in this pull request? Logistic Regression summary is added in Python API. We need to add example and document for summary. The newly added example is consistent with Scala and Java examples. ## How was this patch tested? Manually tests: Run the example with spark-submit; copy & paste code into pyspark; build document and check the document. Author: wm624@hotmail.com <wm624@hotmail.com> Closes #16064 from wangmiao1981/py.
Diffstat (limited to 'docs/ml-classification-regression.md')
-rw-r--r--docs/ml-classification-regression.md10
1 files changed, 8 insertions, 2 deletions
diff --git a/docs/ml-classification-regression.md b/docs/ml-classification-regression.md
index 575959307a..bb9390fd82 100644
--- a/docs/ml-classification-regression.md
+++ b/docs/ml-classification-regression.md
@@ -114,9 +114,15 @@ Continuing the earlier example:
{% include_example java/org/apache/spark/examples/ml/JavaLogisticRegressionSummaryExample.java %}
</div>
-<!--- TODO: Add python model summaries once implemented -->
<div data-lang="python" markdown="1">
-Logistic regression model summary is not yet supported in Python.
+[`LogisticRegressionTrainingSummary`](api/python/pyspark.ml.html#pyspark.ml.classification.LogisticRegressionSummary)
+provides a summary for a
+[`LogisticRegressionModel`](api/python/pyspark.ml.html#pyspark.ml.classification.LogisticRegressionModel).
+Currently, only binary classification is supported. Support for multiclass model summaries will be added in the future.
+
+Continuing the earlier example:
+
+{% include_example python/ml/logistic_regression_summary_example.py %}
</div>
</div>