We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have an AutoML experiment as follows:
List<QuoteModel> quoteModels = new List<QuoteModel>(); //...get data from db and load into quoteModels MLContext mlContext = new MLContext(); IDataView dataView = mlContext.Data.LoadFromEnumerable(quoteModels); TrainTestData splitDataView = mlContext.Data.TrainTestSplit(dataView, testFraction: 0.8); SweepablePipeline pipeline = mlContext.Auto().Featurizer( dataView) .Append(mlContext.Auto().BinaryClassification(labelColumnName: "LeadWon", featureColumnName: "PreviouslyFlooded")); AutoMLExperiment experiment = mlContext.Auto().CreateExperiment(); experiment .SetPipeline(pipeline) .SetBinaryClassificationMetric(BinaryClassificationMetric.Accuracy, labelColumn: "LeadWon") .SetTrainingTimeInSeconds(60) .SetDataset(splitDataView); TrialResult experimentResults = await experiment.RunAsync();
The QuoteModel class is:
public class QuoteModel { public string PreviouslyFlooded { get; set; } public Boolean LeadWon { get; set; } }
When I run the experiment it gives the error:
System.ArgumentOutOfRangeException: 'Schema mismatch for label column 'LeadWon': expected Boolean, got Single
If you look at the QuoteModel class, the label column LeadWon is definately a boolean!!
Any ideas why/how it can give this seemingly impossible error?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have an AutoML experiment as follows:
The QuoteModel class is:
When I run the experiment it gives the error:
System.ArgumentOutOfRangeException: 'Schema mismatch for label column 'LeadWon': expected Boolean, got Single
If you look at the QuoteModel class, the label column LeadWon is definately a boolean!!
Any ideas why/how it can give this seemingly impossible error?
The text was updated successfully, but these errors were encountered: