Skip to content

Text classification : Target 4294967295 is out of bounds #6534

Open

Description

@LittleLittleCloud

System Information (please complete the following information):

  • ML.NET Version: 2.0

Describe the bug

Detailed info can be found in
#dotnet/machinelearning-modelbuilder#2369

Activity

  1. ghost added
    untriagedNew issue has not been triaged
    on Jan 5, 2023
  2. LittleLittleCloud commented on Jan 5, 2023

    @LittleLittleCloud
    MemberAuthor

    It seems that if label's value is NaN or any values that not appear in ValueToKey term mapper, that label will be mapped to 0.

    public override ValueMapper<T, uint> GetKeyMapper()

    So maybe a fix can be proccessing data and filter out the rows where label is null before training in text classification?

  3. added this to the ML.NET 3.0 milestone on Feb 6, 2023
  4. ghost removed
    untriagedNew issue has not been triaged
    on Feb 6, 2023
  5. michaelgsharp commented on Feb 6, 2023

    @michaelgsharp
    Contributor

    Yeah, the torch sharp model is 1 based. I don't know if they have an "unknown" value or not. If they do we need to map 0 to that correctly. If not we need to filter it out before we pass it.

  6. yurant333 commented on Jun 21, 2024

    @yurant333

    Hi guys!

    Please clarify how you can temporarily solve the problem?

    To work with labels, I made an enum in advance, where the elements began with both 0 and 1.
    When starting from 0 I get the error:
    System.Runtime.InteropServices.ExternalException (0x80004005): Target 4294967295 is out of bounds.
    When starting from 1 I get the error:
    System.Runtime
    System.Runtime.InteropServices.ExternalException (0x80004005): Target 39 is out of bounds.

  7. LittleLittleCloud commented on Jun 21, 2024

    @LittleLittleCloud
    MemberAuthor

    The fix on our side is in dataset filter out the labels where value is empty or null

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

    area-TorchSharpTorchSharp-based models and trainersyellowmaintenance only

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions