17 references to Write
Microsoft.ML.CodeGenerator (17)
Templates\Console\ModelOutputClass.cs (17)
33
this.
Write
("\r\nusing System;\r\nusing Microsoft.ML.Data;\r\n");
35
this.
Write
("using System.Collections.Generic;\r\nusing System.Linq;\r\n");
37
this.
Write
("\r\nnamespace ");
38
this.
Write
(this.ToStringHelper.ToStringWithCulture(Namespace));
39
this.
Write
(".Model\r\n{\r\n public class ModelOutput\r\n {\r\n");
41
this.
Write
(" // ColumnName attribute is used to change the column name from\r\n /" +
45
this.
Write
(" // ColumnName attribute is used to change the column name from\r\n /" +
48
this.
Write
(this.ToStringHelper.ToStringWithCulture(PredictionLabelType));
49
this.
Write
(" Prediction { get; set; }\r\n");
52
this.
Write
(" [ColumnName(\"boxes\")]\r\n public float[] Boxes { get; set; }\r\n\r\n " +
78
this.
Write
(" public float[] Score { get; set; }\r\n");
80
this.
Write
(" public float Score { get; set; }\r\n");
82
this.
Write
(" }\r\n}\r\n");
95
this.
Write
(@"//*****************************************************************************************
108
this.
Write
("// This file was auto-generated by ML.NET Model Builder. \r\n");
249
this.
Write
(textToAppend);
258
this.
Write
(string.Format(global::System.Globalization.CultureInfo.CurrentCulture, format, args));