Skip to content

MapValueToKey in ranking sample #815

Open
@justinormont

Description

@justinormont

In the ranking sample, we're using a MapValueToKey transform to convert the Label UINT values { 0, 1, 2, 3, 4 } to a Key. This seems incorrect as the MapValueToKey will order the Key by the order it sees them. This will cause the ranker to randomly switch label values, a "good" could used internally as "bad".

MapValueToKey transform in the ranking example:

.Append(mlContext.Transforms.Conversion.MapValueToKey(nameof(SearchResultData.Label)))

Work:

  1. We should validate that the current sample is working as expected. It may be permuting the labels.
  2. Ideally we would expose the ability to directly set the term list for MapValueToKey; I don't see this term list parameter exposed in the estimators API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions