Base:
method
MappingToFeatureSpace
Microsoft.ML.SearchSpace.Option.OptionBase.MappingToFeatureSpace(Microsoft.ML.SearchSpace.Parameter)
6 references to MappingToFeatureSpace
Microsoft.ML.SearchSpace (1)
Option\ChoiceOption.cs (1)
45
Default =
MappingToFeatureSpace
(Parameter.FromObject(defaultChoice));
Microsoft.ML.SearchSpace.Tests (5)
ChoiceOptionTest.cs (5)
44
option.
MappingToFeatureSpace
(Parameter.FromString("a"))[0].Should().BeApproximately(0, 1e-5);
45
option.
MappingToFeatureSpace
(Parameter.FromString("b"))[0].Should().BeApproximately(0.333333, 1e-5);
46
option.
MappingToFeatureSpace
(Parameter.FromString("c"))[0].Should().BeApproximately(0.666666, 1e-5);
51
option.
MappingToFeatureSpace
(parameter).Should().Equal(0.5);
61
option.
MappingToFeatureSpace
(Parameter.FromString("b")).Should().BeEmpty();