Auto.ML Regression Experiment throwing Exception when culture is pl-PL #5162
Labels
AutoML.NET
Automating various steps of the machine learning process
bug
Something isn't working
P2
Priority of the issue for triage purpose: Needs to be fixed at some point.
System information
Issue
AutoML experiment using Boston houses dataset, RegressionExperiment and pl-PL culture
Exception was thrown after ~3 minutes of experiment -
float.Parse
could not parse string.Exception should not be thrown.
Source code / logs
Call stack:
Unhandled exception. System.OverflowException: Value was either too large or too small for a Decimal.
at System.Number.ThrowOverflowOrFormatException(ParsingStatus status, TypeCode type)
at System.Single.Parse(String s)
at Microsoft.ML.AutoML.SweeperProbabilityUtils.ParameterSetAsFloatArray(IValueGenerator[] sweepParams, ParameterSet ps, Boolean expandCategoricals)
at Microsoft.ML.AutoML.SmacSweeper.FitModel(IEnumerable
1 previousRuns) at Microsoft.ML.AutoML.SmacSweeper.ProposeSweeps(Int32 maxSweeps, IEnumerable
1 previousRuns)at Microsoft.ML.AutoML.PipelineSuggester.SampleHyperparameters(MLContext context, SuggestedTrainer trainer, IEnumerable
1 history, Boolean isMaximizingMetric) at Microsoft.ML.AutoML.PipelineSuggester.GetNextInferredPipeline(MLContext context, IEnumerable
1 history, DatasetColumnInfo[] columns, TaskKind task, Boolean isMaximizingMetric, CacheBeforeTrainer cacheBeforeTrainer, IEnumerable
1 trainerWhitelist) at Microsoft.ML.AutoML.Experiment
2.Execute()at Microsoft.ML.AutoML.ExperimentBase
2.ExecuteCrossVal(IDataView[] trainDatasets, ColumnInformation columnInfo, IDataView[] validationDatasets, IEstimator
1 preFeaturizer, IProgress1 progressHandler) at Microsoft.ML.AutoML.ExperimentBase
2.Execute(IDataView trainData, UInt32 numberOfCVFolds, ColumnInformation columnInformation, IEstimator1 preFeaturizer, IProgress
1 progressHandler)at Playground.Program.AutoMl() in C:\GIT\ML\dotnet\AI\Playground\Program.cs:line 37
at Playground.Program.Main(String[] args) in C:\GIT\ML\dotnet\AI\Playground\Program.cs:line 19
Manual setting culture using
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
solves issue.The text was updated successfully, but these errors were encountered: