dotnet / dotnet/machinelearning-modelbuilder

Data classification - Metadata KeyValues does not exist

Abierto
#3,012 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Dockerfile
Estrellas
285
Forks
66
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

**System Information (please complete the following information):**
- Model Builder Version: 4.0.2
- Visual Studio Version: 2022 Community - 17.13.1

**Describe the bug**
- On which step of the process did you run into an issue: Training the model with the CSV file
- Clear description of the problem: I have a CSV file with 2 headers: Label, Prediction
When i add this file as a data source and select the prediction column as the one to predict i can click next step without any issues.
However, after i click Train on the next screen i get a Model Builder error with the message: Metadata KeyValues does not exist
at Microsoft.ML.Runtime.Contracts.Check(IExceptionContext ctx, Boolean f, String msg)
at Microsoft.ML.Transforms.KeyToValueMappingTransformer.Mapper.ComputeKvMaps(DataViewSchema schema, DataViewType[]& types, KeyToValueMap[]& kvMaps)
at Microsoft.ML.Transforms.KeyToValueMappingTransformer.Mapper..ctor(KeyToValueMappingTransformer parent, DataViewSchema inputSchema)
at Microsoft.ML.Transforms.KeyToValueMappingTransformer.MakeRowMapper(DataViewSchema inputSchema)
at Microsoft.ML.Data.RowToRowTransformerBase.GetOutputSchema(DataViewSchema inputSchema)
at Microsoft.ML.Data.TrivialEstimator`1.Fit(IDataView input)
at Microsoft.ML.Data.EstimatorChain`1.Fit(IDataView input)
at Microsoft.ML.AutoML.SweepablePipelineRunner.Run(TrialSettings settings)
at Microsoft.ML.AutoML.SweepablePipelineRunner.RunAsync(TrialSettings settings, CancellationToken ct)
at Microsoft.ML.AutoML.AutoMLExperiment.RunAsync(CancellationToken ct)
at Microsoft.ML.ModelBuilder.AutoMLService.Experiments.MultiClassificationExperiment.ExecuteAsync(IDataView trainData, IDataView validateData, CancellationToken ct) in /_/src/Microsoft.ML.ModelBuilder.AutoMLService/Experiments/MultiClassificationExperiment.cs:line 140
at Microsoft.ML.ModelBuilder.AutoMLEngine.StartTrainingAsync(ITrainingConfiguration config, PathConfiguration pathConfig, CancellationToken userCancellationToken) in /_/src/Microsoft.ML.ModelBuilder.AutoMLService/AutoMLEngineService/AutoMLEngine.cs:line 178

**To Reproduce**
Honestly not sure if you can reproduce this, im only getting it with my data but ill put my steps anyway.
Steps to reproduce the behavior:
1. Create a model and input the CSV file as a data source under the Data Classifiication scenario
2. Select the prediction column to predict
3. Start training the model
4. See error

**Expected behavior**
For the model training to finish

**Screenshots**
[Picture of the model builder error](https://cdn.itsgamertime.xyz/pictures2/5S2rNU.png)
[VS Code output](https://cdn.itsgamertime.xyz/pictures2/IW6WTc.png)
[Line 68-70 where the output said bad value](https://cdn.itsgamertime.xyz/pictures2/smzcSa.png)

**Additional context**
[Untitled-1.txt](https://github.com/user-attachments/files/19000486/Untitled-1.txt)
Attached log file

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

Comience con el log adjunto y el stack trace, luego inspeccione MultiClassificationExperiment.cs en la línea 140 y AutoEngine.cs en la línea 178 para seguir la entrada de entrenamiento hasta AutoML. Reproduzca el flujo de trabajo de Data Classification con el CSV de dos columnas indicado y determine por qué el entrenamiento llega a KeyToValueMappingTransformer sin los metadatos esperados; se considera terminado cuando el entrenamiento se completa correctamente.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
csharp
Área
machine-learning
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
25/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.