Skip to content

AutoML.Net: CrossValSummaryRunner can't handle all-infinity metrics value. #5339

Closed
@LittleLittleCloud

Description

@LittleLittleCloud

CrossValSummaryRunner picks up the best model and score from cross validation in the following logic:

  • get results from all validation runs
  • if all run succeed, get the index of model with best score as return model, if all run's score is NaN or Infinity, uses the first model
  • if all run succeed, get the score which is closest to the average score as return training score, if average score is NaN, use the first score (BUG)

The possible place that causes the bug is sometimes the average score can be Infinity, in which case the following function will return -1 and causes an index out of error exception

var indexClosestToAvg = GetIndexClosestToAverage(trainResults.Select(r => r.score), avgScore);

Related issue

(The label column for this user's dataset is all empty, which is the root cause for this error)

Metadata

Metadata

Assignees

Labels

AutoML.NETAutomating various steps of the machine learning processP1Priority of the issue for triage purpose: Needs to be fixed soon.bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions