Skip to content

FastTree: FastTreeRanking per-iteration loss metrics are empty #242

Closed

Description

@rogancarr

System information

  • OS version/distro: Various Windows 10 machines, Windows Server 2012 or 2016.
  • .NET Version (eg., dotnet --info): 4.7, 4.6.x

Although, not a system-related bug.

Issue

  • What did you do? Train on a dataset using FastTreeRanking with the testFrequency parameter set to something like 1. Optionally, add a validation set. FastTree will now report training metrics on the train (and validation) sets every N iterations. Do the same for FastTreeRegression and FastTreeClassification.
  • What happened? For Regression and Classification, the expected output is printed. For Ranking, The header for the per-iteration test and validation metrics prints, but there are no metrics.
  • What did you expect? I expected metrics to be printed for the Ranking case.

Source code / logs

Sample output:

trainNDCG:
validNDCG:
trainNDCG:
validNDCG:
trainNDCG:
validNDCG:
trainNDCG:
validNDCG:

Activity

  1. rogancarr commented on May 25, 2018

    @rogancarr
    ContributorAuthor

    I have done a preliminary investigation, and for at least the ranking-sample dataset (which we need to add to this repository), the root cause is that the length of the Dataset.MaxDCG property is 0. Since the length is 0, no scores are computed. It looks like the MaxDCG vector is initialized at double[0][] at the beginning of training and never updated. My working hypothesis is that this is only set during scoring.

    Next steps:

    • Walk through with a real dataset, verify that the same issue exists
  2. added 2 commits that reference this issue on Jun 1, 2018
    9e737a8
    79a437e
  3. added a commit that references this issue on Jun 4, 2018
    4a5de18
  4. added a commit that references this issue on Jun 27, 2018
    185912b
  5. added a commit that references this issue on Jul 27, 2018
    5b77c63
  6. ghost locked as resolved and limited conversation to collaborators on Mar 30, 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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions