Skip to content

Data classification: Training failed with model builder error "Index was outside the bounds of the array". #2294

Closed

Description

@v-Hailishi

System Information (please complete the following information):
Windows OS: Windows-11-Enterprise-21H2
ML.Net Model Builder 2022: 16.13.10.22513701 (Main Build)
Microsoft Visual Studio Enterprise: 2022(17.3.6)
.Net: 6.0

Describe the bug

  • On which step of the process did you run into an issue:
    Training failed with model builder error "Index was outside the bounds of the array" when choosing "SentimentText" as Label and using metric "Log-Loss Reduction".

Data Source
https://testpass.blob.core.windows.net/test-pass-data/wikipedia-detox-250-line-data.tsv

To Reproduce
Steps to reproduce the behavior:

  1. Select Create a new project from the Visual Studio 2022 start window.
  2. Choose the C# Console App (.NET Core6.0) project template.
  3. Add model builder by right click on the project.
  4. Select Data classification scenario.
  5. On Data page, select the data source and choose SentimentText column as label.
  6. On the Train page, choose metric "Log-Loss Reduction", then click "Start training" button.
  7. You will see that training failed with model builder error "Index was outside the bounds of the array".

Expected behavior
Training successful.

Screenshot
image

Additional context:
After the error occurs, .mbconfig file cannot be saved successfully with error "Value cannot be null".
#2294

Activity

  1. added
    Priority:1Work that is critical for the release, but we could probably ship without
    Priority:0Work that we can't release without
    and removed
    Priority:2Work that is important, but not critical for the release
    Priority:1Work that is critical for the release, but we could probably ship without
    on Oct 19, 2022
  2. zewditu commented on Oct 20, 2022

    @zewditu
    Contributor

    This issue happens when The logloss- reduction is infinity.

    @LittleLittleCloud how we are dealing with infinity values metrics?

  3. added this to the Fall 2022 milestone on Nov 2, 2022
  4. modified the milestones: Fall 2022, on Nov 7, 2022
  5. luisquintanilla commented on Dec 8, 2022

    @luisquintanilla
    Contributor

    May be related to dotnet/machinelearning#6361

  6. modified the milestones: , January 2023 on Dec 8, 2022
  7. LittleLittleCloud commented on Jan 11, 2023

    @LittleLittleCloud
    Member

    Model Builder still uses mlnet 2.0 so the fix is not introduced yet

  8. v-Hailishi commented on Jan 12, 2023

    @v-Hailishi
    Author

    The bug is still repro on the latest main build 16.14.2.2306101
    Image

  9. LittleLittleCloud commented on Jan 23, 2023

    @LittleLittleCloud
    Member

    The fix should checked in now

  10. v-Hailishi commented on Jan 31, 2023

    @v-Hailishi
    Author

    @LittleLittleCloud The training is still failed on the latest main build 16.14.3.2307701.
    #2294

  11. luisquintanilla commented on Feb 16, 2023

    @luisquintanilla
    Contributor

    This error was fixed. New issue created to track throwing a better error when no suitable model found. #2500

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Priority:1Work that is critical for the release, but we could probably ship withoutReported by: Test

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions