Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-94842

Implement "sigmoid" argument and add "weight" behavior to $score

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Query Integration
    • Fully Compatible

      The $sigmoid expression has the following behavior: 

      "sigmoid" - apply 1 / (1 + e^-x) where x is the score 

      "sigmoid" is one of the options that can be specified for the the "normalizeFunction" field on $score. The options span the following: "none", "sigmoid", and "minMaxScaler" (the last is being implemented in separate ticket 94599 ) where "sigmoid" is the default.

      "weight" field has the following behavior: A number to multiply the 'score' expression by, after normalization.

      Both "normalizeFunction" and "weight" are optional fields for $score stage.

       

            Assignee:
            adithi.raghavan@mongodb.com Adithi Raghavan
            Reporter:
            adithi.raghavan@mongodb.com Adithi Raghavan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: