diff options
author | Joseph K. Bradley <joseph@databricks.com> | 2015-07-01 11:57:52 -0700 |
---|---|---|
committer | Xiangrui Meng <meng@databricks.com> | 2015-07-01 11:57:52 -0700 |
commit | b8faa32875aa560cdce340266d898902a920418d (patch) | |
tree | 3b1d875976ac1da19cd26b3da42336cf4f635919 /python | |
parent | 2012913355993e6516e4c81dbc92e579977131da (diff) | |
download | spark-b8faa32875aa560cdce340266d898902a920418d.tar.gz spark-b8faa32875aa560cdce340266d898902a920418d.tar.bz2 spark-b8faa32875aa560cdce340266d898902a920418d.zip |
[SPARK-8765] [MLLIB] [PYTHON] removed flaky python PIC test
See failure: [https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/36133/console]
CC yanboliang mengxr
Author: Joseph K. Bradley <joseph@databricks.com>
Closes #7164 from jkbradley/pic-python-test and squashes the following commits:
156d55b [Joseph K. Bradley] removed flaky python PIC test
Diffstat (limited to 'python')
-rw-r--r-- | python/pyspark/mllib/clustering.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/python/pyspark/mllib/clustering.py b/python/pyspark/mllib/clustering.py index e3c8a24c4a..a3eab63528 100644 --- a/python/pyspark/mllib/clustering.py +++ b/python/pyspark/mllib/clustering.py @@ -288,16 +288,12 @@ class PowerIterationClusteringModel(JavaModelWrapper, JavaSaveable, JavaLoader): >>> model = PowerIterationClustering.train(rdd, 2, 100) >>> model.k 2 - >>> sorted(model.assignments().collect()) - [Assignment(id=0, cluster=1), Assignment(id=1, cluster=0), ... >>> import os, tempfile >>> path = tempfile.mkdtemp() >>> model.save(sc, path) >>> sameModel = PowerIterationClusteringModel.load(sc, path) >>> sameModel.k 2 - >>> sorted(sameModel.assignments().collect()) - [Assignment(id=0, cluster=1), Assignment(id=1, cluster=0), ... >>> from shutil import rmtree >>> try: ... rmtree(path) |