Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.4.0
    • ML
    • None

    Description

      `OneHotEncoder` takes a categorical column and output a vector column, which stores the category info in binaries.

      val ohe = new OneHotEncoder()
        .setInputCol("countryIndex")
        .setOutputCol("countries")
      

      It should read the category info from the metadata and assign feature names properly in the output column. We need to discuss the default naming scheme and whether we should let it process multiple categorical columns at the same time.

      One category (the most frequent one) should be removed from the output to make the output columns linear independent. Or this could be an option tuned on by default.

      Attachments

        Issue Links

          Activity

            People

              sandyr Sandy Ryza
              mengxr Xiangrui Meng
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: