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

OneHotEncoder support drop first category alphabetically in the encoded vector

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.3.0
    • Component/s: ML
    • Labels:
      None
    • Target Version/s:

      Description

      R formula drop the first category alphabetically when encode string/category feature. Spark RFormula use OneHotEncoder to encode string/category feature into vector, but only supporting "dropLast" by string/category frequencies. This will cause SparkR produce different models compared with native R.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                actuaryzhang Wayne Zhang
                Reporter:
                yanboliang Yanbo Liang
                Shepherd:
                Yanbo Liang
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: