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