12 references to FromString
Microsoft.ML.AutoML (3)
SweepableEstimator\SweepablePipeline.cs (1)
61
parameter[SchemaOption] = Parameter.
FromString
(_currentSchema);
Tuner\AutoZeroTuner.cs (2)
102
parameter[trainerEstimatorName]["LabelColumnName"] = Parameter.
FromString
(label);
103
parameter[trainerEstimatorName]["FeatureColumnName"] = Parameter.
FromString
(feature);
Microsoft.ML.SearchSpace (3)
Converter\ParameterConverter.cs (1)
23
return Parameter.
FromString
(JsonSerializer.Deserialize<string>(ref reader, options));
Parameter.cs (2)
160
return Parameter.
FromString
(Enum.GetName(t, e));
180
string s => Parameter.
FromString
(s),
Microsoft.ML.SearchSpace.Tests (6)
ChoiceOptionTest.cs (4)
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);
61
option.MappingToFeatureSpace(Parameter.
FromString
("b")).Should().BeEmpty();
ParameterTest.cs (1)
64
parameter = Parameter.
FromString
("abc");
SearchSpaceTest.cs (1)
249
parameter["choice"] = Parameter.
FromString
("a");