aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorZheng RuiFeng <ruifengz@foxmail.com>2016-03-11 09:21:12 +0200
committerNick Pentreath <nick.pentreath@gmail.com>2016-03-11 09:21:12 +0200
commitd18276cb1d82790a402960835e112aebd0c55513 (patch)
treeff81f8825b43733b53e7160d1d168171653e6191 /python
parente33bc67c8f936b7e0e4b94741794e162c0f402d3 (diff)
downloadspark-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 'python')
-rw-r--r--python/pyspark/mllib/clustering.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/python/pyspark/mllib/clustering.py b/python/pyspark/mllib/clustering.py
index 5a5bf59dd5..23d118bd40 100644
--- a/python/pyspark/mllib/clustering.py
+++ b/python/pyspark/mllib/clustering.py
@@ -142,6 +142,7 @@ class BisectingKMeans(object):
.. versionadded:: 2.0.0
"""
+ @classmethod
@since('2.0.0')
def train(self, rdd, k=4, maxIterations=20, minDivisibleClusterSize=1.0, seed=-1888008604):
"""