dotnet / machinelearning-modelbuilder

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

Provided label column 'Column4' was of type String, but only type Single is allowed. #1454

Closed DaniloOPAvanade closed 3 years ago

DaniloOPAvanade commented 3 years ago

em Microsoft.ML.AutoML.UserInputValidationUtil.ValidateTrainDataColumn(IDataView trainData, String columnName, String columnPurpose, IEnumerable1 allowedTypes) em Microsoft.ML.AutoML.UserInputValidationUtil.ValidateColumnInformation(IDataView trainData, ColumnInformation columnInformation, TaskKind task) em Microsoft.ML.AutoML.ExperimentBase2.ExecuteCrossValSummary(IDataView[] trainDatasets, ColumnInformation columnInfo, IDataView[] validationDatasets, IEstimator1 preFeaturizer, IProgress1 progressHandler) em Microsoft.ML.AutoML.ExperimentBase2.Execute(IDataView trainData, ColumnInformation columnInformation, IEstimator1 preFeaturizer, IProgress1 progressHandler) em Microsoft.ML.ModelBuilder.AutoMLService.Experiments.AutoMLExperiment3.<>cDisplayClass21_0.b_5() na //src/Microsoft.ML.ModelBuilder.AutoMLService/Experiments/AutoMLExperiment.cs:linha 81 em System.Threading.Tasks.Task1.InnerInvoke() em System.Threading.Tasks.Task.Execute() --- Fim do rastreamento de pilha do local anterior onde a exceção foi gerada --- em System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() em System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) em Microsoft.ML.ModelBuilder.AutoMLService.Experiments.AutoMLExperiment3.d21.MoveNext() na /_/src/Microsoft.ML.ModelBuilder.AutoMLService/Experiments/AutoMLExperiment.cs:linha 108 --- Fim do rastreamento de pilha do local anterior onde a exceção foi gerada --- em System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() em System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) em Microsoft.ML.ModelBuilder.AutoMLEngine.d_30.MoveNext() na //src/Microsoft.ML.ModelBuilder.AutoMLService/AutoMLEngineService/AutoMLEngine.cs:linha 147

bug

beccamc commented 3 years ago

Hi @DaniloOPAvanade sorry you ran into this issue and thanks for reporting. We've found two reasons why customers hit this...

  1. Are you trying to do value prediction on a string? If you chose "Value Prediction" (regression) as the scenario, the Label to predict must be of type Single. If the Column4 is a number check it's Data Type on the Data Tab -> Advanced Data Options window. If you can share your data with me I'd be happy to look at it.
  2. We have an older bug in this space. Updating to the latest version has fixed it for many customers.
beccamc commented 3 years ago

Any luck with the above suggestion?

beccamc commented 3 years ago

@DaniloOPAvanade, I'm closing this issue due to lack of activity. If you're still seeing this problem, please update to the latest version https://marketplace.visualstudio.com/items?itemName=MLNET.07.

If that doesn't fix the problem, please ensure that you're label column is of type "single". You can change this in the Data Tab -> Advanced data options.

If you're still having problems feel free to re-open and @ mention me. Thank you for reporting!