From ad1a8466e9c10fbe8b455dba17b16973f92ebc15 Mon Sep 17 00:00:00 2001 From: Zheng RuiFeng Date: Wed, 11 May 2016 09:53:36 +0200 Subject: [SPARK-15141][EXAMPLE][DOC] Update OneVsRest Examples ## What changes were proposed in this pull request? 1, Add python example for OneVsRest 2, remove args-parsing ## How was this patch tested? manual tests `./bin/spark-submit examples/src/main/python/ml/one_vs_rest_example.py` Author: Zheng RuiFeng Closes #12920 from zhengruifeng/ovr_pe. --- docs/ml-classification-regression.md | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'docs/ml-classification-regression.md') diff --git a/docs/ml-classification-regression.md b/docs/ml-classification-regression.md index eaf4f6d843..f6a6937e29 100644 --- a/docs/ml-classification-regression.md +++ b/docs/ml-classification-regression.md @@ -300,6 +300,13 @@ Refer to the [Java API docs](api/java/org/apache/spark/ml/classification/OneVsRe {% include_example java/org/apache/spark/examples/ml/JavaOneVsRestExample.java %} + +
+ +Refer to the [Python API docs](api/python/pyspark.ml.html#pyspark.ml.classification.OneVsRest) for more details. + +{% include_example python/ml/one_vs_rest_example.py %} +
## Naive Bayes -- cgit v1.2.3