2 overrides of Default
Microsoft.ML.SearchSpace (2)
Option\NestOption.cs (1)
27
public override double[]
Default
SearchSpace.cs (1)
55
public override double[]
Default
6 writes to Default
Microsoft.ML.SearchSpace (6)
Option\ChoiceOption.cs (2)
34
Default
= Enumerable.Repeat(0.0, FeatureSpaceDim).ToArray();
45
Default
= MappingToFeatureSpace(Parameter.FromObject(defaultChoice));
Option\UniformNumericOption.cs (4)
32
Default
= Enumerable.Repeat(0.0, FeatureSpaceDim).ToArray();
112
Default
= MappingToFeatureSpace(Parameter.FromDouble(defaultValue.Value));
134
Default
= MappingToFeatureSpace(Parameter.FromFloat(defaultValue.Value));
172
Default
= MappingToFeatureSpace(Parameter.FromInt(defaultValue.Value));
9 references to Default
Microsoft.ML.SearchSpace (6)
Converter\ChoiceOptionConverter.cs (1)
40
Default = value.SampleFromFeatureSpace(value.
Default
),
Converter\NumericOptionConverter.cs (3)
57
Default = intOption.SampleFromFeatureSpace(intOption.
Default
).AsType<int>(),
65
Default = doubleOption.SampleFromFeatureSpace(doubleOption.
Default
).AsType<double>(),
73
Default = singleOption.SampleFromFeatureSpace(singleOption.
Default
).AsType<Single>(),
Option\NestOption.cs (1)
32
.SelectMany(kv => kv.Value.
Default
)
SearchSpace.cs (1)
60
.SelectMany(kv => kv.Value.
Default
)
Microsoft.ML.SearchSpace.Tests (3)
ChoiceOptionTest.cs (1)
59
option.
Default
.Should().BeEquivalentTo(System.Array.Empty<double>());
UniformNumericOptionTests.cs (2)
129
option.
Default
.Should().Equal(0);
130
option.SampleFromFeatureSpace(option.
Default
).AsType<double>().Should().Be(2e-10);