12 references to FromDouble
Microsoft.ML.AutoML.Samples (1)
Sweepable\ParameterExample.cs (1)
17var doubleParam = Parameter.FromDouble(20);
Microsoft.ML.AutoML.Tests (1)
TrainValidaionDatasetManagerTest.cs (1)
41parameter[nameof(TrainValidateDatasetManager)][trainValidationDatasetManager.SubSamplingKey] = Parameter.FromDouble(0.3);
Microsoft.ML.SearchSpace (7)
Converter\ParameterConverter.cs (1)
34return Parameter.FromDouble(JsonSerializer.Deserialize<double>(ref reader, options));
Option\UniformNumericOption.cs (5)
86return Parameter.FromDouble(res); 90return Parameter.FromDouble((Min + (Max - Min) * value)); 112Default = MappingToFeatureSpace(Parameter.FromDouble(defaultValue.Value)); 143return base.MappingToFeatureSpace(Parameter.FromDouble(doubleValue)); 190return base.MappingToFeatureSpace(Parameter.FromDouble(valueAsDouble));
Parameter.cs (1)
178double d => Parameter.FromDouble(d),
Microsoft.ML.SearchSpace.Tests (3)
ParameterTest.cs (1)
56parameter = Parameter.FromDouble(3.1415926);
UniformNumericOptionTests.cs (2)
105var sampleInputs = Enumerable.Range(0, 10).Select(i => Parameter.FromDouble(i * 10.0)); 116var sampleInputs = Enumerable.Range(0, 10).Select(i => Parameter.FromDouble(Math.Pow(2, i)));