7 writes to LabelColumnName
Microsoft.ML.TorchSharp (6)
NasBert\NerTrainer.cs (2)
96
LabelColumnName
= labelColumnName,
322
LabelColumnName
= ctx.LoadString(),
NasBert\SentenceSimilarityTrainer.cs (2)
91
LabelColumnName
= labelColumnName,
234
LabelColumnName
= ctx.LoadString(),
NasBert\TextClassificationTrainer.cs (2)
93
LabelColumnName
= labelColumnName,
258
LabelColumnName
= ctx.LoadString(),
Microsoft.ML.TorchSharp.Tests (1)
TextClassificationTests.cs (1)
439
LabelColumnName
= "relevance",
21 references to LabelColumnName
Microsoft.ML.TorchSharp (21)
NasBert\NasBertTrainer.cs (9)
219
return input.GetRowCursor(input.Schema[Parent.BertOptions.Sentence1ColumnName], input.Schema[Parent.BertOptions.Sentence2ColumnName], input.Schema[Parent.Option.
LabelColumnName
]);
221
return input.GetRowCursor(input.Schema[Parent.BertOptions.Sentence1ColumnName], input.Schema[Parent.Option.
LabelColumnName
]);
333
inputSchema.TryFindColumn(Option.
LabelColumnName
, out var labelCol);
348
inputSchema.TryFindColumn(Option.
LabelColumnName
, out var labelCol);
371
if (!inputSchema.TryFindColumn(Option.
LabelColumnName
, out var labelCol))
372
throw Host.ExceptSchemaMismatch(nameof(inputSchema), "label", Option.
LabelColumnName
);
377
throw Host.ExceptSchemaMismatch(nameof(inputSchema), "label", Option.
LabelColumnName
,
393
throw Host.ExceptSchemaMismatch(nameof(inputSchema), "label", Option.
LabelColumnName
,
399
throw Host.ExceptSchemaMismatch(nameof(inputSchema), "label", Option.
LabelColumnName
,
NasBert\NerTrainer.cs (3)
216
input.Schema[Parent.Option.
LabelColumnName
].GetKeyValues(ref keys);
217
var labelCol = input.GetColumn<VBuffer<uint>>(Parent.Option.
LabelColumnName
);
352
var labelCol = new DataViewSchema.DetachedColumn(options.
LabelColumnName
, type, meta.ToAnnotations());
NasBert\SentenceSimilarityTrainer.cs (2)
148
var labelCol = input.GetColumn<float>(Parent.Option.
LabelColumnName
);
252
var labelCol = new DataViewSchema.DetachedColumn(options.
LabelColumnName
, NumberDataViewType.Single);
NasBert\TextClassificationTrainer.cs (2)
150
var labelCol = input.GetColumn<uint>(Parent.Option.
LabelColumnName
);
288
var labelCol = new DataViewSchema.DetachedColumn(options.
LabelColumnName
, type, meta.ToAnnotations());
TorchSharpBaseTrainer.cs (5)
92
Contracts.AssertValue(options.
LabelColumnName
);
118
var labelCol = input.Schema.GetColumnOrNull(Option.
LabelColumnName
);
203
var labelGetter = cursor.GetGetter<TLabelCol>(validationSet.Schema[Parent.Option.
LabelColumnName
]);
275
var labelGetter = cursor.GetGetter<TLabelCol>(input.Schema[Parent.Option.
LabelColumnName
]);
428
ctx.SaveNonEmptyString(Options.
LabelColumnName
);