dotnet / machinelearning-modelbuilder

Simple UI tool to build custom machine learning models.
Creative Commons Attribution 4.0 International
264 stars 56 forks source link

Error saying a prediction label column is string type when it is a decimal(10,2) #1382

Closed gpintoextra closed 3 years ago

gpintoextra commented 3 years ago

System Information (please complete the following information):

Describe the bug

**Provided label column 'CalidadPonderada' was of type String, but only type Single is allowed.**

   en Microsoft.ML.AutoML.UserInputValidationUtil.ValidateTrainDataColumn(IDataView trainData, String columnName, String columnPurpose, IEnumerable`1 allowedTypes)
   en Microsoft.ML.AutoML.UserInputValidationUtil.ValidateColumnInformation(IDataView trainData, ColumnInformation columnInformation, TaskKind task)
   en Microsoft.ML.AutoML.ExperimentBase`2.ExecuteCrossValSummary(IDataView[] trainDatasets, ColumnInformation columnInfo, IDataView[] validationDatasets, IEstimator`1 preFeaturizer, IProgress`1 progressHandler)
   en Microsoft.ML.AutoML.ExperimentBase`2.Execute(IDataView trainData, ColumnInformation columnInformation, IEstimator`1 preFeaturizer, IProgress`1 progressHandler)
   en Microsoft.ML.ModelBuilder.AutoMLService.Experiments.AutoMLExperiment`3.<>c__DisplayClass21_0.<ExecuteAsync>b__5() en /_/src/Microsoft.ML.ModelBuilder.AutoMLService/Experiments/AutoMLExperiment.cs:línea 81
   en System.Threading.Tasks.Task`1.InnerInvoke()
   en System.Threading.Tasks.Task.Execute()
--- Fin del seguimiento de la pila de la ubicación anterior donde se produjo la excepción ---
   en System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   en System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   en Microsoft.ML.ModelBuilder.AutoMLService.Experiments.AutoMLExperiment`3.<ExecuteAsync>d__21.MoveNext() en /_/src/Microsoft.ML.ModelBuilder.AutoMLService/Experiments/AutoMLExperiment.cs:línea 108
--- Fin del seguimiento de la pila de la ubicación anterior donde se produjo la excepción ---
   en System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   en System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   en Microsoft.ML.ModelBuilder.AutoMLEngine.<StartTrainingAsync>d__30.MoveNext() en /_/src/Microsoft.ML.ModelBuilder.AutoMLService/AutoMLEngineService/AutoMLEngine.cs:línea 147

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior The model is created after training

Screenshots If applicable, add screenshots to help explain your problem.

Captura1 Captura2

logfile_2113e03f-7ac3-4a62-8af1-574e65d5b2ad.txt

Additional context Hint: My windows os is in Spanish whichs considers decimal numbers like for example 3,14 with a coma not a dot like in english 3.14 but I changed the OS setting for decimal numbers separated by dot and the problem is the same.

beccamc commented 3 years ago

@gpintoextra Thanks for reporting and sorry for the issue here. Can you try upgrading to 16.3 and reproducing the problem? Upgrade here: https://marketplace.visualstudio.com/items?itemName=MLNET.07

beccamc commented 3 years ago

Any luck updating the MB version?

gpintoextra commented 3 years ago

Yes, problem solved. Thank you very much.

beccamc commented 3 years ago

Awesome! Thanks for reaching out, and let me know if you run into any more problems!