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