spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Weichen Xu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-13030) Change OneHotEncoder to Estimator
Date Mon, 09 Oct 2017 09:13:01 GMT

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

Weichen Xu commented on SPARK-13030:
------------------------------------

[~bago.amirbekian]
Multi-column means generate separated columns from multiple input columns. N input columns
generate N output columns. If need join resulting vectors we can pipeline `VectorAssembler`
afterwards, I think.
and +1 for the same `handleInvalid` semantics as StringIndexer.

> Change OneHotEncoder to Estimator
> ---------------------------------
>
>                 Key: SPARK-13030
>                 URL: https://issues.apache.org/jira/browse/SPARK-13030
>             Project: Spark
>          Issue Type: Improvement
>          Components: ML
>    Affects Versions: 1.6.0
>            Reporter: Wojciech Jurczyk
>
> OneHotEncoder should be an Estimator, just like in scikit-learn (http://scikit-learn.org/stable/modules/generated/sklearn.preprocessing.OneHotEncoder.html).
> In its current form, it is impossible to use when number of categories is different between
training dataset and test dataset.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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


Mime
View raw message