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