Skip to content

In CodeGenerator, Recommendation scenario Training cause null reference Exception #4579

Closed

Description

@LittleLittleCloud

Just dig in a bit. The null reference exception is because, in the AutoML generated pipeline, one of the fields in the trainer node's property dictionary is null, which crashes CodeGenerator.

Activity

  1. LittleLittleCloud commented on Dec 16, 2019

    @LittleLittleCloud
    MemberAuthor

    The root cause for that is in CodeGenerator, it only handle cases when trainer option's value type is built-in type. see the following code link.

    While in this case, the null-value field's type is a MatrixFactorizationTrainer.LossFunctionType. So it's been ignored and assigned a null value.

    A quick fix can be fairly simple: just pass the string value of MatrixFactorizationTrainer.LossFunctionType in sweepable parameters.
    use reflection to get the right type in code gen.

  2. ghost locked as resolved and limited conversation to collaborators on Mar 19, 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