Base:
method
SampleFromFeatureSpace
Microsoft.ML.SearchSpace.Option.OptionBase.SampleFromFeatureSpace(System.Double[])
2 overrides of SampleFromFeatureSpace
Microsoft.ML.SearchSpace (2)
Option\UniformNumericOption.cs (2)
147
public override Parameter
SampleFromFeatureSpace
(double[] values)
177
public override Parameter
SampleFromFeatureSpace
(double[] values)
7 references to SampleFromFeatureSpace
Microsoft.ML.SearchSpace (3)
Converter\NumericOptionConverter.cs (1)
65
Default = doubleOption.
SampleFromFeatureSpace
(doubleOption.Default).AsType<double>(),
Option\UniformNumericOption.cs (2)
149
var doubleValue = base.
SampleFromFeatureSpace
(values).AsType<double>();
179
var param = base.
SampleFromFeatureSpace
(values);
Microsoft.ML.SearchSpace.Tests (4)
UniformNumericOptionTests.cs (4)
80
var sampleOutputs = sampleInputs.Select(i => option.
SampleFromFeatureSpace
(new[] { i }));
93
var sampleOutputs = sampleInputs.Select(i => option.
SampleFromFeatureSpace
(new[] { i }));
130
option.
SampleFromFeatureSpace
(option.Default).AsType<double>().Should().Be(2e-10);
131
option.
SampleFromFeatureSpace
(new[] { 1.0 }).AsType<double>().Should().Be(1.0);