From fab0d62a71b11d5b53975fcd931b8abc05a86a2d Mon Sep 17 00:00:00 2001 From: zero323 Date: Mon, 6 Feb 2017 18:12:20 -0800 Subject: [SPARK-19467][ML][PYTHON] Remove cyclic imports from pyspark.ml.pipeline ## What changes were proposed in this pull request? Remove cyclic imports between `pyspark.ml.pipeline` and `pyspark.ml`. ## How was this patch tested? Existing unit tests. Author: zero323 Closes #16814 from zero323/SPARK-19467. --- python/pyspark/ml/pipeline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/pyspark/ml/pipeline.py') diff --git a/python/pyspark/ml/pipeline.py b/python/pyspark/ml/pipeline.py index 4307ad02a0..a78e3b49fb 100644 --- a/python/pyspark/ml/pipeline.py +++ b/python/pyspark/ml/pipeline.py @@ -21,7 +21,7 @@ if sys.version > '3': basestring = str from pyspark import since, keyword_only, SparkContext -from pyspark.ml import Estimator, Model, Transformer +from pyspark.ml.base import Estimator, Model, Transformer from pyspark.ml.param import Param, Params from pyspark.ml.util import JavaMLWriter, JavaMLReader, MLReadable, MLWritable from pyspark.ml.wrapper import JavaParams -- cgit v1.2.3