Repository: spark Updated Branches: refs/heads/branch-1.4 d6e76cb0d -> fb4967b5f
[SPARK-7432] [MLLIB] disable cv doctest Temporarily disable flaky doctest for CrossValidator. jkbradley Author: Xiangrui Meng <[email protected]> Closes #5962 from mengxr/disable-pyspark-cv-test and squashes the following commits: 5db7e5b [Xiangrui Meng] disable cv doctest (cherry picked from commit 773aa25252f29ca25dbb1ee495b530557fe79405) Signed-off-by: Xiangrui Meng <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/fb4967b5 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/fb4967b5 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/fb4967b5 Branch: refs/heads/branch-1.4 Commit: fb4967b5fc26c2255158ae4eb81c6fc42adb6795 Parents: d6e76cb Author: Xiangrui Meng <[email protected]> Authored: Wed May 6 22:29:07 2015 -0700 Committer: Xiangrui Meng <[email protected]> Committed: Wed May 6 22:29:22 2015 -0700 ---------------------------------------------------------------------- python/pyspark/ml/tuning.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/fb4967b5/python/pyspark/ml/tuning.py ---------------------------------------------------------------------- diff --git a/python/pyspark/ml/tuning.py b/python/pyspark/ml/tuning.py index f6cf2c3..1e04c37 100644 --- a/python/pyspark/ml/tuning.py +++ b/python/pyspark/ml/tuning.py @@ -103,10 +103,10 @@ class CrossValidator(Estimator): >>> grid = ParamGridBuilder().addGrid(lr.maxIter, [0, 1, 5]).build() >>> evaluator = BinaryClassificationEvaluator() >>> cv = CrossValidator(estimator=lr, estimatorParamMaps=grid, evaluator=evaluator) - >>> cvModel = cv.fit(dataset) - >>> expected = lr.fit(dataset, {lr.maxIter: 5}).transform(dataset) - >>> cvModel.transform(dataset).collect() == expected.collect() - True + >>> # SPARK-7432: The following test is flaky. + >>> # cvModel = cv.fit(dataset) + >>> # expected = lr.fit(dataset, {lr.maxIter: 5}).transform(dataset) + >>> # cvModel.transform(dataset).collect() == expected.collect() """ # a placeholder to make it appear in the generated doc --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
