diff options
author | zero323 <zero323@users.noreply.github.com> | 2017-02-06 18:12:20 -0800 |
---|---|---|
committer | Joseph K. Bradley <joseph@databricks.com> | 2017-02-06 18:12:20 -0800 |
commit | fab0d62a71b11d5b53975fcd931b8abc05a86a2d (patch) | |
tree | 1dbfc48c8a2ee6bf081a0923d4fe3753e3df1283 /python/pyspark/ml | |
parent | d6dc603ed480abaa1e801cf626cd3b2153d101fc (diff) | |
download | spark-fab0d62a71b11d5b53975fcd931b8abc05a86a2d.tar.gz spark-fab0d62a71b11d5b53975fcd931b8abc05a86a2d.tar.bz2 spark-fab0d62a71b11d5b53975fcd931b8abc05a86a2d.zip |
[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 <zero323@users.noreply.github.com>
Closes #16814 from zero323/SPARK-19467.
Diffstat (limited to 'python/pyspark/ml')
-rw-r--r-- | python/pyspark/ml/pipeline.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |