[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.
This commit is contained in:
parent
d6dc603ed4
commit
fab0d62a71
|
@ -21,7 +21,7 @@ if sys.version > '3':
|
||||||
basestring = str
|
basestring = str
|
||||||
|
|
||||||
from pyspark import since, keyword_only, SparkContext
|
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.param import Param, Params
|
||||||
from pyspark.ml.util import JavaMLWriter, JavaMLReader, MLReadable, MLWritable
|
from pyspark.ml.util import JavaMLWriter, JavaMLReader, MLReadable, MLWritable
|
||||||
from pyspark.ml.wrapper import JavaParams
|
from pyspark.ml.wrapper import JavaParams
|
||||||
|
|
Loading…
Reference in a new issue