30 writes to Name
Microsoft.ML.AutoML (1)
ColumnInference\TextFileContents.cs (1)
67
Name
= "C",
Microsoft.ML.CodeGenerator.Tests (25)
CodeGenTests.cs (25)
145
new TextLoader.Column(){
Name
= "Label", Source = new TextLoader.Range[]{new TextLoader.Range(0) }, DataKind = DataKind.Boolean },
149
new TextLoader.Column(){
Name
= "id", Source = new TextLoader.Range[]{new TextLoader.Range(0) }, DataKind = DataKind.Single },
150
new TextLoader.Column(){
Name
= "country", Source = new TextLoader.Range[]{new TextLoader.Range(1) }, DataKind = DataKind.Single },
151
new TextLoader.Column(){
Name
= "Country", Source = new TextLoader.Range[]{new TextLoader.Range(2) }, DataKind = DataKind.String }
155
new TextLoader.Column(){
Name
= "id", Source = new TextLoader.Range[]{new TextLoader.Range(0) }, DataKind = DataKind.Int32 },
156
new TextLoader.Column(){
Name
= "shape", Source = new TextLoader.Range[]{new TextLoader.Range(1) }, DataKind = DataKind.Int32 },
157
new TextLoader.Column(){
Name
= "Shape", Source = new TextLoader.Range[]{new TextLoader.Range(2) }, DataKind = DataKind.String },
158
new TextLoader.Column(){
Name
= "color", Source = new TextLoader.Range[]{new TextLoader.Range(3) }, DataKind = DataKind.String },
159
new TextLoader.Column(){
Name
= "price", Source = new TextLoader.Range[]{new TextLoader.Range(4) }, DataKind = DataKind.Double },
163
new TextLoader.Column(){
Name
= "vin", Source = new TextLoader.Range[]{new TextLoader.Range(0) }, DataKind = DataKind.String },
164
new TextLoader.Column(){
Name
= "make", Source = new TextLoader.Range[]{new TextLoader.Range(1) }, DataKind = DataKind.String },
165
new TextLoader.Column(){
Name
= "model", Source = new TextLoader.Range[]{new TextLoader.Range(2) }, DataKind = DataKind.String },
166
new TextLoader.Column(){
Name
= "color", Source = new TextLoader.Range[]{new TextLoader.Range(3) }, DataKind = DataKind.String },
167
new TextLoader.Column(){
Name
= "MSRP", Source = new TextLoader.Range[]{new TextLoader.Range(4) }, DataKind = DataKind.Single },
168
new TextLoader.Column(){
Name
= "engine size", Source = new TextLoader.Range[]{new TextLoader.Range(5) }, DataKind = DataKind.Double },
169
new TextLoader.Column(){
Name
= "isElectric", Source = new TextLoader.Range[]{new TextLoader.Range(6) }, DataKind = DataKind.Boolean },
173
new TextLoader.Column(){
Name
= "var_text", Source = new TextLoader.Range[]{new TextLoader.Range(0) }, DataKind = DataKind.String },
174
new TextLoader.Column(){
Name
= "var_text", Source = new TextLoader.Range[]{new TextLoader.Range(1) }, DataKind = DataKind.String },
175
new TextLoader.Column(){
Name
= "var_num", Source = new TextLoader.Range[]{new TextLoader.Range(2) }, DataKind = DataKind.Int32 },
176
new TextLoader.Column(){
Name
= "var_num", Source = new TextLoader.Range[]{new TextLoader.Range(3) }, DataKind = DataKind.Int32 },
177
new TextLoader.Column(){
Name
= "var_num", Source = new TextLoader.Range[]{new TextLoader.Range(4) }, DataKind = DataKind.Int32 },
178
new TextLoader.Column(){
Name
= "var_text", Source = new TextLoader.Range[]{new TextLoader.Range(5) }, DataKind = DataKind.String },
179
new TextLoader.Column(){
Name
= "var_num", Source = new TextLoader.Range[]{new TextLoader.Range(6) }, DataKind = DataKind.Int32 },
180
new TextLoader.Column(){
Name
= "var_text", Source = new TextLoader.Range[]{new TextLoader.Range(7) }, DataKind = DataKind.String },
181
new TextLoader.Column(){
Name
= "var_num", Source = new TextLoader.Range[]{new TextLoader.Range(8) }, DataKind = DataKind.Double },
Microsoft.ML.Data (4)
DataLoadSave\Text\TextLoader.cs (3)
97
Name
= name;
159
if (string.IsNullOrWhiteSpace(
Name
= rgstr[istr++]))
1599
column.
Name
= mappingAttrName?.Name ?? memberInfo.Name;
DataLoadSave\Text\TextSaver.cs (1)
519
return new TextLoader.Column() {
Name
= name, KeyCount = keyCount, Source = source, Type = kind };
26 references to Name
Microsoft.ML.AutoML.Tests (12)
ColumnInferenceTests.cs (12)
63
Assert.Equal("hours-per-week", labelCol.
Name
);
74
Assert.Equal(DefaultColumnNames.Label, labelCol.
Name
);
82
var emptyColumn = result.TextLoaderOptions.Columns.First(c => c.
Name
== "Empty");
92
var boolColumn = result.TextLoaderOptions.Columns.First(c => c.
Name
== "Bool");
93
var labelColumn = result.TextLoaderOptions.Columns.First(c => c.
Name
== DefaultColumnNames.Label);
119
var labelColumn = result.TextLoaderOptions.Columns.First(c => c.
Name
== "col0");
120
var userColumn = result.TextLoaderOptions.Columns.First(c => c.
Name
== "col1");
121
var itemColumn = result.TextLoaderOptions.Columns.First(c => c.
Name
== "col2");
122
var ignoreColumn = result.TextLoaderOptions.Columns.First(c => c.
Name
== "col4");
139
var nameColumn = result.TextLoaderOptions.Columns.First(c => c.
Name
== "Username");
140
var labelColumn = result.TextLoaderOptions.Columns.First(c => c.
Name
== DefaultColumnNames.Label);
192
var labelCol = result.TextLoaderOptions.Columns.First(c => c.
Name
== DatasetUtil.MlNetGeneratedRegressionLabel);
Microsoft.ML.CodeGenerator (7)
CodeGenerator\CSharp\AzureCodeGenerator\AzureAttachModelCodeGenerator.cs (1)
56
var labelType = _columnInferenceResult.TextLoaderOptions.Columns.Where(t => t.
Name
== _settings.LabelName).First().DataKind;
CodeGenerator\CSharp\CodeGenerator.cs (1)
60
var labelType = _columnInferenceResult.TextLoaderOptions.Columns.Where(t => t.
Name
== _settings.LabelName).First().DataKind;
Utils.cs (5)
277
if (columnMapping != null && columnMapping.ContainsKey(column.
Name
))
279
dataKind = columnMapping[column.
Name
].ColumnType;
280
columnName = columnMapping[column.
Name
].ColumnName;
285
columnName = column.
Name
;
300
columnNames.Add(column.
Name
);
Microsoft.ML.Data (7)
DataLoadSave\Text\TextLoader.cs (7)
194
if (string.IsNullOrWhiteSpace(
Name
))
196
if (CmdQuoter.NeedsQuoting(
Name
))
202
sb.Append(
Name
);
763
ch.CheckNonWhiteSpace(col.
Name
, nameof(col.
Name
));
764
string name = col.
Name
.Trim();
892
Infos[iinfoOther] = ColInfo.Create(cols[iinfoOther].
Name
.Trim(), typeOther, segsNew.ToArray(), true);