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)
39var className = Utils.ToTitleCase(jNode["name"].GetValue<string>()); 43var 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) 35var code = estimators.SelectMany(e => e.EstimatorTypes.Select(eType => (e, eType, Utils.CreateEstimatorName(e.FunctionName, eType))) 66TOption = Utils.ToTitleCase(x.e.SearchOption),
Template\SweepableEstimator.cs (5)
48var typeAttributeName = Utils.CapitalFirstLetter(arg.ArgumentType); 49var propertyName = Utils.CapitalFirstLetter(arg.ArgumentName); 59this.Write(this.ToStringHelper.ToStringWithCulture(Utils.PrettyPrintListOfString(UsingStatements.Select(x => $"using {x};")))); 62this.Write(this.ToStringHelper.ToStringWithCulture(Utils.PrettyPrintListOfString(NugetDependencies))); 65this.Write(this.ToStringHelper.ToStringWithCulture(Utils.GetPrefix(Type)));
Template\SweepableEstimator_T_.cs (3)
63this.Write(this.ToStringHelper.ToStringWithCulture(Utils.PrettyPrintListOfString(UsingStatements.Select(x => $"using {x};")))); 66this.Write(this.ToStringHelper.ToStringWithCulture(Utils.PrettyPrintListOfString(NugetDependencies))); 69this.Write(this.ToStringHelper.ToStringWithCulture(Utils.GetPrefix(Type)));