spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-23828) PySpark StringIndexerModel should have constructor from labels
Date Tue, 03 Apr 2018 17:55:01 GMT

    [ https://issues.apache.org/jira/browse/SPARK-23828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16424357#comment-16424357
] 

Apache Spark commented on SPARK-23828:
--------------------------------------

User 'huaxingao' has created a pull request for this issue:
https://github.com/apache/spark/pull/20968

> PySpark StringIndexerModel should have constructor from labels
> --------------------------------------------------------------
>
>                 Key: SPARK-23828
>                 URL: https://issues.apache.org/jira/browse/SPARK-23828
>             Project: Spark
>          Issue Type: Improvement
>          Components: ML, PySpark
>    Affects Versions: 2.3.0
>            Reporter: Bryan Cutler
>            Priority: Minor
>
> The Scala StringIndexerModel has an alternate constructor that will create the model
from an array of label strings.  This should be in the Python API also, maybe as a classmethod
> {code:java}
> model = StringIndexerModel.from_labels(['a', 'b']){code}
> See SPARK-15009 which added a similar constructor to CountVectorizerModel



--
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