Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-19467

PySpark ML shouldn't use circular imports

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0.0, 2.1.0, 2.2.0
    • 2.2.0
    • ML, PySpark
    • None

    Description

      pyspark.ml and pyspark.ml.pipeline contain circular imports with the former one:

      from pyspark.ml.pipeline import Pipeline, PipelineModel
      

      and the latter one:

      from pyspark.ml import Estimator, Model, Transformer
      

      This is unnecessary and can cause failures when working with external tools.

      Attachments

        Activity

          People

            zero323 Maciej Szymkiewicz
            zero323 Maciej Szymkiewicz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: