Attach filesAttach ScreenshotVotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

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

    Description

      `StringIndexer` takes a column of string labels (raw categories) and outputs an integer column with labels indexed by their frequency.

      va li = new StringIndexer()
        .setInputCol("country")
        .setOutputCol("countryIndex")
      

      In the output column, we should store the label to index map as an ML attribute. The index should be ordered by frequency, where the most frequent label gets index 0, to enhance sparsity.

      We can discuss whether this should index multiple columns at the same time.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment