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)
45Default = MappingToFeatureSpace(Parameter.FromObject(defaultChoice));
Microsoft.ML.SearchSpace.Tests (5)
ChoiceOptionTest.cs (5)
44option.MappingToFeatureSpace(Parameter.FromString("a"))[0].Should().BeApproximately(0, 1e-5); 45option.MappingToFeatureSpace(Parameter.FromString("b"))[0].Should().BeApproximately(0.333333, 1e-5); 46option.MappingToFeatureSpace(Parameter.FromString("c"))[0].Should().BeApproximately(0.666666, 1e-5); 51option.MappingToFeatureSpace(parameter).Should().Equal(0.5); 61option.MappingToFeatureSpace(Parameter.FromString("b")).Should().BeEmpty();