diff options
author | Zheng RuiFeng <ruifengz@foxmail.com> | 2016-03-11 09:21:12 +0200 |
---|---|---|
committer | Nick Pentreath <nick.pentreath@gmail.com> | 2016-03-11 09:21:12 +0200 |
commit | d18276cb1d82790a402960835e112aebd0c55513 (patch) | |
tree | ff81f8825b43733b53e7160d1d168171653e6191 /docs | |
parent | e33bc67c8f936b7e0e4b94741794e162c0f402d3 (diff) | |
download | spark-d18276cb1d82790a402960835e112aebd0c55513.tar.gz spark-d18276cb1d82790a402960835e112aebd0c55513.tar.bz2 spark-d18276cb1d82790a402960835e112aebd0c55513.zip |
[SPARK-13672][ML] Add python examples of BisectingKMeans in ML and MLLIB
JIRA: https://issues.apache.org/jira/browse/SPARK-13672
## What changes were proposed in this pull request?
add two python examples of BisectingKMeans for ml and mllib
## How was this patch tested?
manual tests
Author: Zheng RuiFeng <ruifengz@foxmail.com>
Closes #11515 from zhengruifeng/mllib_bkm_pe.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/mllib-clustering.md | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/mllib-clustering.md b/docs/mllib-clustering.md index 44720147be..6897ba4a5d 100644 --- a/docs/mllib-clustering.md +++ b/docs/mllib-clustering.md @@ -399,6 +399,12 @@ Refer to the [`BisectingKMeans` Java docs](api/java/org/apache/spark/mllib/clust {% include_example java/org/apache/spark/examples/mllib/JavaBisectingKMeansExample.java %} </div> + +<div data-lang="python" markdown="1"> +Refer to the [`BisectingKMeans` Python docs](api/python/pyspark.mllib.html#pyspark.mllib.clustering.BisectingKMeans) and [`BisectingKMeansModel` Python docs](api/python/pyspark.mllib.html#pyspark.mllib.clustering.BisectingKMeansModel) for more details on the API. + +{% include_example python/mllib/bisecting_k_means_example.py %} +</div> </div> ## Streaming k-means |