Skip to content

Error in ML.net training #4464

Closed
Closed
@dmoise2

Description

@dmoise2

System information

  • Windows 10 Home:
  • .NET Core 2.1.802:

Issue

  • **First time running ML.NET. Set the Database & started Training.
  • **What happened? – training stopped “Failed – See more in Output Pane.”
  • **What did you expect? – Training to Complete

Source code / logs

| Trainer MicroAccuracy MacroAccuracy Duration #Iteration |
Schema mismatch for score column 'Score': expected vector of two or more items of type Single, got Vector<Single, 1>
Parameter name: schema
Must be at least 2.
Parameter name: numClasses
Schema mismatch for score column 'Score': expected vector of two or more items of type Single, got Vector<Single, 1>
Parameter name: schema
Training failed with the exception: System.ArgumentOutOfRangeException: Schema mismatch for score column 'Score': expected vector of two or more items of type Single, got Vector<Single, 1>
Parameter name: schema
at Microsoft.ML.Data.MulticlassClassificationEvaluator.CheckScoreAndLabelTypes(RoleMappedSchema schema)
at Microsoft.ML.Data.EvaluatorBase1.CheckColumnTypes(RoleMappedSchema schema) at Microsoft.ML.Data.EvaluatorBase1.Microsoft.ML.Data.IEvaluator.Evaluate(RoleMappedData data)
at Microsoft.ML.Data.MulticlassClassificationEvaluator.Evaluate(IDataView data, String label, String score, String predictedLabel)
at Microsoft.ML.AutoML.MultiMetricsAgent.EvaluateMetrics(IDataView data, String labelColumn)
at Microsoft.ML.AutoML.RunnerUtil.TrainAndScorePipeline[TMetrics](MLContext context, SuggestedPipeline pipeline, IDataView trainData, IDataView validData, String labelColumn, IMetricsAgent`1 metricsAgent, ITransformer preprocessorTransform, FileInfo modelFileInfo, DataViewSchema modelInputSchema, AutoMLLogger logger)

Metadata

Metadata

Labels

AutoML.NETAutomating various steps of the machine learning processP0Priority of the issue for triage purpose: IMPORTANT, needs to be fixed right away.bugSomething isn't workingneed infoThis issue needs more info before triage

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions