diff --git a/src/Microsoft.ML.AutoML/Sweepers/Parameters.cs b/src/Microsoft.ML.AutoML/Sweepers/Parameters.cs index 77916f3926..45fe286af8 100644 --- a/src/Microsoft.ML.AutoML/Sweepers/Parameters.cs +++ b/src/Microsoft.ML.AutoML/Sweepers/Parameters.cs @@ -4,6 +4,7 @@ using System; using System.Collections.Generic; +using System.Globalization; using Microsoft.ML.Internal.Utilities; namespace Microsoft.ML.AutoML @@ -128,7 +129,7 @@ public FloatParameterValue(string name, float value) Runtime.Contracts.Assert(!float.IsNaN(value)); _name = name; _value = value; - _valueText = _value.ToString("R"); + _valueText = _value.ToString("R", CultureInfo.InvariantCulture); } public bool Equals(IParameterValue other)