dotnet / dotnet/machinelearning-modelbuilder
ERROR: Schema mismatch for label column 'CODICE_ARTICOLO': expected Single, got String Nome parametro: inputSchema
- Vorherrschende Sprache
- Dockerfile
- Sterne
- 285
- Forks
- 66
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
**System Information (please complete the following information):**
- Model Builder or CLI Version: 17.18.2.2415501
- Visual Studio Version (if applicable): 17.8.4 (2022)
**Describe the bug**
- On which page of the tutorial did you run into an issue (URL): https://dotnet.microsoft.com/en-us/learn/ml-dotnet/get-started-tutorial/train
- Clear description of the problem: Schema mismatch for label column 'CODICE_ARTICOLO': expected Single, got String
Nome parametro: inputSchema
in Microsoft.ML.Trainers.MatrixFactorizationTrainer.g__CheckColumnsCompatible|33_0(Column cachedColumn, String columnRole, <>c__DisplayClass33_0& )
in Microsoft.ML.Trainers.MatrixFactorizationTrainer.GetOutputSchema(SchemaShape inputSchema)
in Microsoft.ML.Data.EstimatorChain`1.GetOutputSchema(SchemaShape inputSchema)
in Microsoft.ML.Data.EstimatorChain`1.Fit(IDataView input)
in Microsoft.ML.AutoML.SweepablePipelineRunner.Run(TrialSettings settings)
in Microsoft.ML.AutoML.SweepablePipelineRunner.RunAsync(TrialSettings settings, CancellationToken ct)
in Microsoft.ML.AutoML.AutoMLExperiment.d__24.MoveNext()
--- Fine traccia dello stack da posizione precedente dove è stata generata l'eccezione ---
in System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
in System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
in Microsoft.ML.ModelBuilder.AutoMLService.RecommendationExperiment.d__13.MoveNext() in /_/src/Microsoft.ML.ModelBuilder.AutoMLService/Experiments/RecommendationExperiment.cs:riga 150
--- Fine traccia dello stack da posizione precedente dove è stata generata l'eccezione ---
in System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
in System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
in Microsoft.ML.ModelBuilder.AutoMLEngine.d__21.MoveNext() in /_/src/Microsoft.ML.ModelBuilder.AutoMLService/AutoMLEngineService/AutoMLEngine.cs:riga 161
**To Reproduce**
I have to create a reccomendation system of products, so i choose Reccomendation scenario, then i keep the Local environment, then to insert the data i upload my .txt file (columns of this file: "numberOrder", "ClientID", "ProductID", "ProductDescription", all these columns are alphanumeric datas and where if the numberOrder is the same it means they were bought together and the reccomendation system should reccomend product that were bought together).
Under "column to predict" i put ProductID, "user column" is ClientID and "element column" is numberOrder. When i go to train your model page i insert 60 seconds of time to train then i start training but then the error appears.
This is an example of my data:
**Expected behavior**
That the reccomendation system works
**Screenshots**
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Reproduziere das Empfehlungsszenario aus dem verlinkten Tutorial unter Verwendung der gemeldeten Spalten und untersuche die Schema-Validierung rund um MatrixFactorizationTrainer. Beginne bei RecommendationExperiment.cs in Zeile 150 und AutoMLEngine.cs in Zeile 161 und verfolge dann das an das Training übergebene Eingabeschema. Fertig ist die Aufgabe, wenn die gemeldeten Daten nicht mehr den Label-Typkonflikt verursachen und das Empfehlungsmodell erfolgreich trainiert wird.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- machine-learning
- Bereich
- machine-learning
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 30/100