Skip to content

Update default n-gram length for Text Transform to match default text recipe #2870

Closed

Description

@daholste

@justinormont and the text team tuned default n-gram lengths for the default text recipe in the internal repo

These defaults are:
Word -- bigrams (w/ unigrams)
Character -- trigrams (w/o unigrams and bigrams)

One chart from his findings:
image

The line w/ the light blue call-out represents current ML.NET defaults (Unigram + Trichar)
The line w/ the light green call-out is the requested change (Bigram + Trichar)
The line w/ the pink call-out shows the Trigram+Trichar is better in terms of accuracy, but with a time hit, and accuracy has a cross over at NumIterations > 8 for Averaged Perceptron learner.

Activity

  1. changed the title [-]Update default n-gram length in text transforms to match TLC[/-] [+]Update default n-gram length in Text Transform to match TLC[/+] on Mar 6, 2019
  2. changed the title [-]Update default n-gram length in Text Transform to match TLC[/-] [+]Update default n-gram length for Text Transform to match TLC[/+] on Mar 6, 2019
  3. changed the title [-]Update default n-gram length for Text Transform to match TLC[/-] [+]Update default n-gram length for Text Transform to match default text recipe[/+] on Mar 6, 2019
  4. rogancarr commented on Mar 6, 2019

    @rogancarr
    Contributor

    Related to #2802

  5. zeahmed commented on Mar 25, 2019

    @zeahmed
    Contributor

    @justinormont and @shauheen, do you want this to go in V1.0?

  6. justinormont commented on Mar 25, 2019

    @justinormont
    Contributor

    That's up to @shauheen. I'd say yes, as there's strong upsides of accuracy. You'll notice the large jump in accuracy (y-axis) when we move from the blue to green lines in the above graph.

    The power of defaults should never be underestimated.

    Related: #2305

  7. najeeb-kazmi commented on Jan 31, 2020

    @najeeb-kazmi
    Member

    Tracking in #4749

  8. ghost locked as resolved and limited conversation to collaborators on Mar 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions