You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by jk...@apache.org on 2017/02/07 02:12:24 UTC
spark git commit: [SPARK-19467][ML][PYTHON] Remove cyclic imports
from pyspark.ml.pipeline
Repository: spark
Updated Branches:
refs/heads/master d6dc603ed -> fab0d62a7
[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 <ze...@users.noreply.github.com>
Closes #16814 from zero323/SPARK-19467.
Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/fab0d62a
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/fab0d62a
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/fab0d62a
Branch: refs/heads/master
Commit: fab0d62a71b11d5b53975fcd931b8abc05a86a2d
Parents: d6dc603
Author: zero323 <ze...@users.noreply.github.com>
Authored: Mon Feb 6 18:12:20 2017 -0800
Committer: Joseph K. Bradley <jo...@databricks.com>
Committed: Mon Feb 6 18:12:20 2017 -0800
----------------------------------------------------------------------
python/pyspark/ml/pipeline.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/spark/blob/fab0d62a/python/pyspark/ml/pipeline.py
----------------------------------------------------------------------
diff --git a/python/pyspark/ml/pipeline.py b/python/pyspark/ml/pipeline.py
index 4307ad0..a78e3b4 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
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org