spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiangrui Meng (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SPARK-24477) Import submodules under pyspark.ml by default
Date Wed, 06 Jun 2018 18:20:00 GMT

     [ https://issues.apache.org/jira/browse/SPARK-24477?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Xiangrui Meng updated SPARK-24477:
----------------------------------
    Description: 
Right now, we do not import submodules under pyspark.ml by default. So users cannot do

{code}
from pyspark import ml
kmeans = ml.clustering.KMeans(...)
{code}

I create this JIRA to discuss if we should import the submodules by default. It will change
behavior of

{code}
from pyspark.ml import *
{code}

But it simplifies unnecessary imports.

cc [~hyukjin.kwon]

  was:
Right now, we do not import submodules under pyspark.ml by default. So users cannot do

{code}
from pyspark import ml
kmeans = ml.clustering.KMeans(...)
{code}

I create this JIRA to discuss if we should import the submodules by default. It will change
behavior of

{code}
from pyspark.ml import *
{code}

cc [~hyukjin.kwon]


> Import submodules under pyspark.ml by default
> ---------------------------------------------
>
>                 Key: SPARK-24477
>                 URL: https://issues.apache.org/jira/browse/SPARK-24477
>             Project: Spark
>          Issue Type: Improvement
>          Components: ML, PySpark
>    Affects Versions: 2.4.0
>            Reporter: Xiangrui Meng
>            Priority: Major
>
> Right now, we do not import submodules under pyspark.ml by default. So users cannot do
> {code}
> from pyspark import ml
> kmeans = ml.clustering.KMeans(...)
> {code}
> I create this JIRA to discuss if we should import the submodules by default. It will
change behavior of
> {code}
> from pyspark.ml import *
> {code}
> But it simplifies unnecessary imports.
> cc [~hyukjin.kwon]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message