dotnet / machinelearning-samples

Samples for ML.NET, an open source and cross-platform machine learning framework for .NET.
https://dot.net/ml
MIT License
4.4k stars 2.65k forks source link

Price prediction build model issue #443

Open JasonCSharpCoder opened 5 years ago

JasonCSharpCoder commented 5 years ago

Hi, as document guides, I use the price prediction,when train data, errors as below Inferring Columns ... Creating Data loader ... Loading data ... Exploring multiple ML algorithms and settings to find you the best model for ML task: regression For further learning check: https://aka.ms/mlnet-cli | Trainer RSquared Absolute-loss Squared-loss RMS-loss Duration #Iteration | [Source=AutoML, Kind=Trace] Channel started Exception occured while exploring pipelines: Provided label column 'vendor_id' was of type String, but only type Single is allowed. System.ArgumentException: Provided label column 'vendor_id' was of type String, but only type Single is allowed. at Microsoft.ML.CLI.Program.<>c__DisplayClass1_0.

b__0(NewCommandSettings options) at Microsoft.ML.CLI.CodeGenerator.CodeGenerationHelper.GenerateCode() Please see the log file for more info.

justinormont commented 5 years ago

Try setting --has-header true as a parameter.

justinormont commented 5 years ago

Related: https://github.com/dotnet/machinelearning-automl/issues/410 ("Feature : header detection capabilities")