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