25 references to Write
Microsoft.ML.CodeGenerator (25)
Templates\Azure\Console\AzureModelBuilder.cs (25)
34
this.
Write
("using System;\r\nusing System.Collections.Generic;\r\nusing System.IO;\r\nusing System." +
36
this.
Write
(this.ToStringHelper.ToStringWithCulture(Namespace));
37
this.
Write
(".Model;\r\nnamespace ");
38
this.
Write
(this.ToStringHelper.ToStringWithCulture(Namespace));
39
this.
Write
(".ConsoleApp\r\n{\r\n public static class ModelBuilder\r\n {\r\n private stat" +
41
this.
Write
(this.ToStringHelper.ToStringWithCulture(Path));
42
this.
Write
(@""";
57
this.
Write
(this.ToStringHelper.ToStringWithCulture(HasHeader.ToString().ToLowerInvariant()));
58
this.
Write
(",\r\n separatorChar : \'");
59
this.
Write
(this.ToStringHelper.ToStringWithCulture(Regex.Escape(Separator.ToString())));
60
this.
Write
("\',\r\n allowQuoting : ");
61
this.
Write
(this.ToStringHelper.ToStringWithCulture(AllowQuoting.ToString().ToLowerInvariant()));
62
this.
Write
(",\r\n allowSparse: ");
63
this.
Write
(this.ToStringHelper.ToStringWithCulture(AllowSparse.ToString().ToLowerInvariant()));
64
this.
Write
(@");
81
this.
Write
(" // Data process configuration with pipeline data transformations to:\r" +
88
{
Write
("\r\n .Append(");
90
Write
("mlContext.Transforms."+PreTrainerTransforms[i]);
92
{
Write
(")");
95
this.
Write
(";\r\n");
97
this.
Write
(@" return pipeline;
137
this.
Write
(@"//*****************************************************************************************
150
this.
Write
("// This file was auto-generated by ML.NET Model Builder. \r\n");
291
this.
Write
(textToAppend);
300
this.
Write
(string.Format(global::System.Globalization.CultureInfo.CurrentCulture, format, args));