Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
LittleLittleCloud opened this issue Dec 16, 2019 · 1 comment
Labels
AutoML.NET Automating various steps of the machine learning process bug Something isn't working P1 Priority of the issue for triage purpose: Needs to be fixed soon.

Comments

@LittleLittleCloud
Copy link
Contributor

LittleLittleCloud commented Dec 16, 2019

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.

@LittleLittleCloud LittleLittleCloud added the AutoML.NET Automating various steps of the machine learning process label Dec 16, 2019
@LittleLittleCloud
Copy link
Contributor Author

LittleLittleCloud commented Dec 16, 2019

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.

@Lynx1820 Lynx1820 added bug Something isn't working P1 Priority of the issue for triage purpose: Needs to be fixed soon. labels Jan 9, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Mar 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
AutoML.NET Automating various steps of the machine learning process bug Something isn't working P1 Priority of the issue for triage purpose: Needs to be fixed soon.
Projects
None yet
Development

No branches or pull requests

3 participants