spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiangrui Meng (JIRA)" <>
Subject [jira] [Created] (SPARK-7921) Change includeFirst to dropLast in OneHotEncoder
Date Thu, 28 May 2015 19:06:19 GMT
Xiangrui Meng created SPARK-7921:

             Summary: Change includeFirst to dropLast in OneHotEncoder
                 Key: SPARK-7921
             Project: Spark
          Issue Type: Improvement
          Components: ML
    Affects Versions: 1.4.0
            Reporter: Xiangrui Meng
            Assignee: Xiangrui Meng

Change includeFirst to dropLast and leave the default to true. There are couple benefits:

a. consistent with other tutorials of one-hot encoding (or dummy coding) (e.g.,
b. keep the indices unmodified in the output vector. If we drop the first, all indices will
be shifted by 1.
c. If users use StringIndex, the last element is the least frequent one.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message