Base:
method
SampleFromFeatureSpace
Microsoft.ML.SearchSpace.Option.OptionBase.SampleFromFeatureSpace(System.Double[])
13 references to SampleFromFeatureSpace
Microsoft.ML.SearchSpace (1)
Converter\ChoiceOptionConverter.cs (1)
40
Default = value.
SampleFromFeatureSpace
(value.Default),
Microsoft.ML.SearchSpace.Tests (12)
ChoiceOptionTest.cs (12)
22
option.
SampleFromFeatureSpace
(new[] { 0.0 }).AsType<string>().Should().Be("a");
23
option.
SampleFromFeatureSpace
(new[] { 0.33 }).AsType<string>().Should().Be("a");
24
option.
SampleFromFeatureSpace
(new[] { 0.34 }).AsType<string>().Should().Be("b");
25
option.
SampleFromFeatureSpace
(new[] { 0.66 }).AsType<string>().Should().Be("b");
26
option.
SampleFromFeatureSpace
(new[] { 0.67 }).AsType<string>().Should().Be("c");
27
option.
SampleFromFeatureSpace
(new[] { 0.97 }).AsType<string>().Should().Be("c");
28
option.
SampleFromFeatureSpace
(new[] { 0.999999999 }).AsType<string>().Should().Be("c");
29
option.
SampleFromFeatureSpace
(new[] { 1.0 }).AsType<string>().Should().Be("c");
36
option.
SampleFromFeatureSpace
(new[] { 0.0 }).AsType<string>().Should().Be("a");
37
option.
SampleFromFeatureSpace
(new[] { 0.99 }).AsType<string>().Should().Be("a");
49
var parameter = option.
SampleFromFeatureSpace
(new[] { 0.5 });
60
option.
SampleFromFeatureSpace
(new double[0]).AsType<string>().Should().Be("b");