Open thoron opened 1 year ago
I am running into a similar problem. In my case, the experiment uses Binary Classification.
It seems that whatever dataview the evaluator sees, does not have the Label column.
System.ArgumentOutOfRangeException: label column 'Label' not found (Parameter 'schema')
at Microsoft.ML.Data.RoleMappedSchema.MapFromNames(DataViewSchema schema, IEnumerable`1 roles, Boolean opt)
at Microsoft.ML.Data.RoleMappedSchema..ctor(DataViewSchema schema, IEnumerable`1 roles, Boolean opt)
at Microsoft.ML.Data.RoleMappedData..ctor(IDataView data, Boolean opt, KeyValuePair`2[] roles)
at Microsoft.ML.Data.BinaryClassifierEvaluator.Evaluate(IDataView data, String label, String score, String predictedLabel)
I dug deeper into AutoML code and found that label column for the evaluator is always 'label' (lower case).
I renamed "Label" to "label" everywhere and that fixed this issue
System Information (please complete the following information):
Describe the bug
An error for missing Label in Schema when trying to load text (csv) without header row.
Row example:
To Reproduce
Removing
Featurizer
does not produce any different result, same error.Generates error:
Loaded data looks as expected:![image](https://github.com/dotnet/machinelearning/assets/1374642/595ee738-6423-408c-9dbb-9dad16858f6e)
Expected behavior
Loading schema for AutoML when Label has been specified.
Might be due to missing header row and/or not using
InferColumns
. Schema looks fine on runtime manual inspection, am I missing something?