dotnet / dotnet/machinelearning-modelbuilder
ERROR: Schema mismatch for label column 'CODICE_ARTICOLO': expected Single, got String Nome parametro: inputSchema
- Dominant language
- Dockerfile
- Stars
- 285
- Forks
- 66
- PR merge metrics
- No merged PRs in 30d
Description
**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**
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.