38 references to Utils
Microsoft.ML.CodeGenerator (38)
CodeGenerator\CSharp\AzureCodeGenerator\AzureAttachCodeGenenrator.cs (1)
31
var namespaceValue = Utilities.
Utils
.Normalize(_settings.OutputName);
CodeGenerator\CSharp\AzureCodeGenerator\AzureAttachConsoleAppCodeGenerator.cs (1)
84
var sampleResult =
Utils
.GenerateSampleData(_settings.TrainDataset, _columnInferenceResult);
CodeGenerator\CSharp\AzureCodeGenerator\AzureAttachModelCodeGenerator.cs (2)
50
ClassLabels = Utilities.
Utils
.GenerateClassLabels(_columnInferenceResult, _settings.OnnxInputMapping),
57
Type labelTypeCsharp =
Utils
.GetCSharpType(labelType);
CodeGenerator\CSharp\CodeGenerator.cs (19)
59
var namespaceValue =
Utils
.Normalize(_settings.OutputName);
61
Type labelTypeCsharp =
Utils
.GetCSharpType(labelType);
73
Utils
.WriteOutputToFiles(modelProjectContents.ModelInputCSFileContent, "ModelInput.cs", dataModelsDir);
74
Utils
.WriteOutputToFiles(modelProjectContents.ModelOutputCSFileContent, "ModelOutput.cs", dataModelsDir);
75
Utils
.WriteOutputToFiles(modelProjectContents.ConsumeModelCSFileContent, "ConsumeModel.cs", dataModelsDir);
76
Utils
.WriteOutputToFiles(modelProjectContents.ModelProjectFileContent, modelProjectName, modelprojectDir);
87
Utils
.WriteOutputToFiles(consoleAppProjectContents.ConsoleAppProgramCSFileContent, "Program.cs", consoleAppProjectDir);
88
Utils
.WriteOutputToFiles(consoleAppProjectContents.modelBuilderCSFileContent, "ModelBuilder.cs", consoleAppProjectDir);
89
Utils
.WriteOutputToFiles(consoleAppProjectContents.ConsoleAppProjectFileContent, consoleAppProjectName, consoleAppProjectDir);
92
Utils
.CreateSolutionFile(_settings.OutputName, _settings.OutputBaseDir);
96
Utils
.AddProjectsToSolution(modelprojectDir, modelProjectName, consoleAppProjectDir, consoleAppProjectName, solutionPath);
145
predictProgramCSFileContent =
Utils
.FormatCode(predictProgramCSFileContent);
155
modelBuilderCSFileContent =
Utils
.FormatCode(modelBuilderCSFileContent);
170
modelInputCSFileContent =
Utils
.FormatCode(modelInputCSFileContent);
174
modelOutputCSFileContent =
Utils
.FormatCode(modelOutputCSFileContent);
178
consumeModelCSFileContent =
Utils
.FormatCode(consumeModelCSFileContent);
264
/// Utilize <see cref="ML.CodeGenerator.Utilities.
Utils
.GenerateClassLabels(ColumnInferenceResults, IDictionary{string, CodeGeneratorSettings.ColumnMapping})"/>
268
return
Utils
.GenerateClassLabels(_columnInferenceResult, columnMapping);
347
var sampleData =
Utils
.GenerateSampleData(_settings.TrainDataset, _columnInferenceResult);
CodeGenerator\CSharp\CSharpCodeFile.cs (2)
22
_file =
Utils
.FormatCode(value);
40
Utilities.
Utils
.WriteOutputToFiles(File, Name, location);
CodeGenerator\CSharp\CSharpProjectFile.cs (1)
40
Utilities.
Utils
.WriteOutputToFiles(File, Name, location);
CodeGenerator\CSharp\CSharpSolution.cs (2)
27
Utils
.CreateSolutionFile(Name, folder);
29
Utilities.
Utils
.AddProjectsToSolution(solutionPath, this.Select((project) => project.Name).ToArray());
Templates\Console\PredictProgram.cs (6)
59
this.Write(this.ToStringHelper.ToStringWithCulture(
Utils
.Normalize(LabelName)));
61
this.Write(this.ToStringHelper.ToStringWithCulture(
Utils
.Normalize(LabelName)));
75
this.Write(this.ToStringHelper.ToStringWithCulture(
Utils
.Normalize(LabelName)));
79
this.Write(this.ToStringHelper.ToStringWithCulture(
Utils
.Normalize(LabelName)));
83
this.Write(this.ToStringHelper.ToStringWithCulture(
Utils
.Normalize(LabelName)));
85
this.Write(this.ToStringHelper.ToStringWithCulture(
Utils
.Normalize(LabelName)));
Utils.cs (4)
44
return
Utils
.GenerateSampleData(trainData, columnInference);
68
var getGetGetterMethod = typeof(
Utils
).GetMethod(nameof(
Utils
.GetValueFromColumn), BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic);
326
columnNames[i] =
Utils
.Normalize(columnNames[i]);