23 references to Utils
Microsoft.ML.AutoML.SourceGenerator (23)
EstimatorTypeGenerator.cs (4)
36
.SelectMany(file =>
Utils
.GetEstimatorsFromJson(file.GetText().ToString()).Estimators, (text, estimator) => (estimator.FunctionName, estimator.EstimatorTypes))
37
.SelectMany(union => union.EstimatorTypes.Select(t =>
Utils
.CreateEstimatorName(union.FunctionName, t)))
41
.SelectMany(file =>
Utils
.GetEstimatorsFromJson(file.GetText().ToString()).Estimators, (text, estimator) => (estimator.FunctionName, estimator.EstimatorTypes))
42
.SelectMany(union => union.EstimatorTypes.Select(t =>
Utils
.CreateEstimatorName(union.FunctionName, t)))
SearchSpaceGenerator.cs (2)
39
var className =
Utils
.ToTitleCase(jNode["name"].GetValue<string>());
43
var optionName =
Utils
.ToTitleCase(t["name"].GetValue<string>());
SweepableEstimatorFactoryGenerator.cs (6)
33
.SelectMany(file =>
Utils
.GetEstimatorsFromJson(file.GetText().ToString()).Estimators, (text, estimator) => (estimator.FunctionName, estimator.EstimatorTypes, estimator.SearchOption))
34
.SelectMany(union => union.EstimatorTypes.Select(t => (
Utils
.CreateEstimatorName(union.FunctionName, t),
Utils
.ToTitleCase(union.SearchOption))))
38
.SelectMany(file =>
Utils
.GetEstimatorsFromJson(file.GetText().ToString()).Estimators, (text, estimator) => (estimator.FunctionName, estimator.EstimatorTypes, estimator.SearchOption))
39
.SelectMany(union => union.EstimatorTypes.Select(t => (
Utils
.CreateEstimatorName(union.FunctionName, t),
Utils
.ToTitleCase(union.SearchOption))))
SweepableEstimatorGenerator.cs (3)
32
.SelectMany(file =>
Utils
.GetEstimatorsFromJson(file.GetText().ToString()).Estimators)
35
var code = estimators.SelectMany(e => e.EstimatorTypes.Select(eType => (e, eType,
Utils
.CreateEstimatorName(e.FunctionName, eType)))
66
TOption =
Utils
.ToTitleCase(x.e.SearchOption),
Template\SweepableEstimator.cs (5)
48
var typeAttributeName =
Utils
.CapitalFirstLetter(arg.ArgumentType);
49
var propertyName =
Utils
.CapitalFirstLetter(arg.ArgumentName);
59
this.Write(this.ToStringHelper.ToStringWithCulture(
Utils
.PrettyPrintListOfString(UsingStatements.Select(x => $"using {x};"))));
62
this.Write(this.ToStringHelper.ToStringWithCulture(
Utils
.PrettyPrintListOfString(NugetDependencies)));
65
this.Write(this.ToStringHelper.ToStringWithCulture(
Utils
.GetPrefix(Type)));
Template\SweepableEstimator_T_.cs (3)
63
this.Write(this.ToStringHelper.ToStringWithCulture(
Utils
.PrettyPrintListOfString(UsingStatements.Select(x => $"using {x};"))));
66
this.Write(this.ToStringHelper.ToStringWithCulture(
Utils
.PrettyPrintListOfString(NugetDependencies)));
69
this.Write(this.ToStringHelper.ToStringWithCulture(
Utils
.GetPrefix(Type)));