1 write to Schema
Microsoft.ML.DataView (1)
DataViewSchema.cs (1)
207
Schema
= schema;
177 references to Schema
DnnAnalyzer (2)
DnnAnalyzer.cs (2)
40
var metadataType = schema[i].Annotations.
Schema
.GetColumnOrNull("TensorflowOperatorType")?.Type;
43
metadataType = schema[i].Annotations.
Schema
.GetColumnOrNull("TensorflowUpstreamOperators")?.Type;
Microsoft.ML.Core (8)
Data\AnnotationUtils.cs (7)
226
var columnType = schema[col].Annotations.
Schema
.GetColumnOrNull(annotationKind)?.Type;
250
var columnType = schema[col].Annotations.
Schema
.GetColumnOrNull(annotationKind)?.Type;
269
var columnType = schema[col].Annotations.
Schema
.GetColumnOrNull(annotationKind)?.Type;
290
var metaColumn = column.Annotations.
Schema
.GetColumnOrNull(Kinds.SlotNames);
363
var annotationType = schema[col].Annotations.
Schema
.GetColumnOrNull(kind)?.Type;
388
var type = schema[colIndex].Annotations.
Schema
.GetColumnOrNull(Kinds.CategoricalSlotRanges)?.Type;
468
public override DataViewSchema Schema => _annotations.
Schema
;
Data\IEstimator.cs (1)
189
foreach (var annotationColumn in schema[iCol].Annotations.
Schema
)
Microsoft.ML.Core.Tests (23)
UnitTests\ScoreSchemaTest.cs (19)
58
Assert.Equal(3, scoreMetadata.
Schema
.Count);
61
Assert.Equal(AnnotationUtils.Kinds.KeyValues, scoreMetadata.
Schema
[0].Name);
62
Assert.Equal(AnnotationUtils.Kinds.ScoreColumnKind, scoreMetadata.
Schema
[1].Name);
63
Assert.Equal(AnnotationUtils.Kinds.ScoreValueKind, scoreMetadata.
Schema
[2].Name);
66
Assert.True(scoreMetadata.
Schema
[0].Type is VectorDataViewType);
67
Assert.Equal(keyNames.Length, (scoreMetadata.
Schema
[0].Type as VectorDataViewType).Size);
68
Assert.Equal(TextDataViewType.Instance, (scoreMetadata.
Schema
[0].Type as VectorDataViewType).ItemType);
69
Assert.Equal(TextDataViewType.Instance, scoreColumn.Annotations.
Schema
[1].Type);
70
Assert.Equal(TextDataViewType.Instance, scoreColumn.Annotations.
Schema
[2].Type);
73
var keyNamesGetter = scoreMetadata.GetGetter<VBuffer<ReadOnlyMemory<char>>>(scoreMetadata.
Schema
[0]);
79
var scoreColumnKindGetter = scoreMetadata.GetGetter<ReadOnlyMemory<char>>(scoreMetadata.
Schema
[1]);
84
var scoreValueKindGetter = scoreMetadata.GetGetter<ReadOnlyMemory<char>>(scoreMetadata.
Schema
[2]);
115
Assert.Equal(2, scoreMetadata.
Schema
.Count);
118
Assert.Equal(AnnotationUtils.Kinds.ScoreColumnKind, scoreMetadata.
Schema
[0].Name);
119
Assert.Equal(AnnotationUtils.Kinds.ScoreValueKind, scoreMetadata.
Schema
[1].Name);
122
Assert.Equal(TextDataViewType.Instance, scoreColumn.Annotations.
Schema
[0].Type);
123
Assert.Equal(TextDataViewType.Instance, scoreColumn.Annotations.
Schema
[1].Type);
126
var scoreColumnKindGetter = scoreMetadata.GetGetter<ReadOnlyMemory<char>>(scoreMetadata.
Schema
[0]);
131
var scoreValueKindGetter = scoreMetadata.GetGetter<ReadOnlyMemory<char>>(scoreMetadata.
Schema
[1]);
UnitTests\TestEntryPoints.cs (4)
1633
var type = binaryScored.Schema[scoreCol.Value.Index].Annotations.
Schema
.GetColumnOrNull(AnnotationUtils.Kinds.ScoreColumnKind)?.Type;
1642
type = regressionScored.Schema[scoreCol.Value.Index].Annotations.
Schema
[AnnotationUtils.Kinds.ScoreColumnKind].Type;
1650
type = anomalyScored.Schema[scoreCol.Value.Index].Annotations.
Schema
[AnnotationUtils.Kinds.ScoreColumnKind].Type;
5406
var type = schema["Count"].Annotations.
Schema
[AnnotationUtils.Kinds.SlotNames].Type;
Microsoft.ML.Data (47)
Commands\ShowSchemaCommand.cs (2)
156
if ((typeNames = schema[col].Annotations.
Schema
.GetColumnOrNull(AnnotationUtils.Kinds.SlotNames)?.Type) == null)
191
foreach (var metaColumn in schema[col].Annotations.
Schema
.OrderBy(mcol => mcol.Name))
Data\SchemaAnnotationsExtensions.cs (2)
57
var metaColumn = column.Annotations.
Schema
.GetColumnOrNull(AnnotationUtils.Kinds.KeyValues);
82
var metaColumn = column.Annotations.
Schema
.GetColumnOrNull((AnnotationUtils.Kinds.IsNormalized));
DataLoadSave\Binary\BinarySaver.cs (1)
281
foreach (var metaColumn in schema[col].Annotations.
Schema
)
DataLoadSave\Text\TextSaver.cs (2)
167
&& (typeNames = cursor.Schema[source].Annotations.
Schema
.GetColumnOrNull(AnnotationUtils.Kinds.SlotNames)?.Type as VectorDataViewType) != null
422
var typeNames = data.Schema[cols[i]].Annotations.
Schema
.GetColumnOrNull(AnnotationUtils.Kinds.SlotNames)?.Type as VectorDataViewType;
DataView\DataViewConstructionUtils.cs (2)
84
foreach (var annotation in annotations.
Schema
)
106
return new AnnotationInfo<T>(kind, value, annotations.
Schema
[kind].Type);
Evaluators\EvaluatorUtils.cs (12)
87
var columnType = schema[col].Annotations.
Schema
.GetColumnOrNull(AnnotationUtils.Kinds.ScoreColumnKind)?.Type;
99
var columnType = schema[col].Annotations.
Schema
.GetColumnOrNull(AnnotationUtils.Kinds.ScoreColumnKind)?.Type;
142
if (col.Annotations.
Schema
.GetColumnOrNull(AnnotationUtils.Kinds.ScoreValueKind)?.Type == TextDataViewType.Instance)
186
var type = schema[colScore].Annotations.
Schema
.GetColumnOrNull(AnnotationUtils.Kinds.ScoreColumnSetId)?.Type;
203
if (col.Annotations.
Schema
.GetColumnOrNull(AnnotationUtils.Kinds.ScoreValueKind)?.Type == TextDataViewType.Instance)
222
var type = schema[col].Annotations.
Schema
.GetColumnOrNull(AnnotationUtils.Kinds.ScoreColumnKind)?.Type;
353
var slotNamesType = schema[i].Annotations.
Schema
.GetColumnOrNull(AnnotationUtils.Kinds.SlotNames)?.Type as VectorDataViewType;
569
var keyValueType = schema[indices[i]].Annotations.
Schema
.GetColumnOrNull(AnnotationUtils.Kinds.KeyValues)?.Type;
867
labelColKeyValuesType = dv.Schema[i].Annotations.
Schema
.GetColumnOrNull(AnnotationUtils.Kinds.KeyValues)?.Type;
1027
var slotNamesType = schema[i].Annotations.
Schema
.GetColumnOrNull(AnnotationUtils.Kinds.SlotNames)?.Type as VectorDataViewType;
1236
var keyValuesType = schema[i].Annotations.
Schema
.GetColumnOrNull(AnnotationUtils.Kinds.KeyValues)?.Type as VectorDataViewType;
1392
var type = countColumn.Annotations.
Schema
.GetColumnOrNull(AnnotationUtils.Kinds.SlotNames)?.Type as VectorDataViewType;
Evaluators\MulticlassClassificationEvaluator.cs (1)
101
var mdType = schema.Schema[scoreInfo.Index].Annotations.
Schema
.GetColumnOrNull(AnnotationUtils.Kinds.SlotNames)?.Type as VectorDataViewType;
Evaluators\MultiOutputRegressionEvaluator.cs (1)
595
var type = schema[column].Annotations.
Schema
.GetColumnOrNull(AnnotationUtils.Kinds.SlotNames)?.Type;
Evaluators\QuantileRegressionEvaluator.cs (2)
47
var type = schema.Schema[scoreInfo.Index].Annotations.
Schema
.GetColumnOrNull(AnnotationUtils.Kinds.SlotNames)?.Type as VectorDataViewType;
74
var slotNamesType = schema.Schema[scoreInfo.Index].Annotations.
Schema
.GetColumnOrNull(AnnotationUtils.Kinds.SlotNames)?.Type as VectorDataViewType;
Prediction\CalibratorCatalog.cs (1)
284
var schema = annotation.
Schema
;
Scorers\BinaryClassifierScorer.cs (1)
99
if (mapper.OutputSchema[scoreIdx].Annotations.
Schema
.GetColumnOrNull(AnnotationUtils.Kinds.TrainingLabelValues)?.Type != null)
Scorers\MulticlassClassificationScorer.cs (1)
459
if (outSchema[scoreIdx].Annotations.
Schema
.GetColumnOrNull(metaKind)?.Type != null)
Scorers\PredictedLabelScorerBase.cs (5)
68
var trainLabelColumn = scoreColMetadata.
Schema
.GetColumnOrNull(AnnotationUtils.Kinds.TrainingLabelValues);
184
var sch = _predColMetadata.
Schema
;
207
if (_predColMetadata.
Schema
.TryGetColumnIndex(kind, out mcol))
208
return _predColMetadata.
Schema
[mcol].Type;
227
var mcol = _predColMetadata.
Schema
.GetColumnOrNull(kind);
Scorers\RowToRowScorerBase.cs (2)
441
foreach (var pair in Mapper.OutputSchema[iinfo - DerivedColumnCount].Annotations.
Schema
.Select(c => new KeyValuePair<string, DataViewType>(c.Name, c.Type)))
452
return Mapper.OutputSchema[iinfo - DerivedColumnCount].Annotations.
Schema
.GetColumnOrNull(kind)?.Type;
Transforms\ColumnBindingsBase.cs (2)
516
return Input[index].Annotations.
Schema
.Select(c => new KeyValuePair<string, DataViewType>(c.Name, c.Type));
529
return Input[index].Annotations.
Schema
.GetColumnOrNull(kind)?.Type;
Transforms\ColumnConcatenatingTransformer.cs (2)
649
if (inputMetadata != null && inputMetadata.
Schema
.TryGetColumnIndex(AnnotationUtils.Kinds.SlotNames, out int idx))
650
typeNames = inputMetadata.
Schema
[idx].Type as VectorDataViewType;
Transforms\KeyToValue.cs (1)
230
var typeVals = schema[ColMapNewToOld[iinfo]].Annotations.
Schema
.GetColumnOrNull(AnnotationUtils.Kinds.KeyValues)?.Type;
Transforms\KeyToVector.cs (2)
313
var keyValuesColumn = inputMetadata.
Schema
.GetColumnOrNull(AnnotationUtils.Kinds.KeyValues);
379
var typeSlotSrc = inputMetadata.
Schema
.GetColumnOrNull(AnnotationUtils.Kinds.SlotNames)?.Type as VectorDataViewType;
Transforms\MetadataDispatcher.cs (2)
236
foreach (var kvp in info.SchemaSrc[info.IndexSrc].Annotations.
Schema
.Select(c => new KeyValuePair<string, DataViewType>(c.Name, c.Type)))
268
return info.SchemaSrc[info.IndexSrc].Annotations.
Schema
.GetColumnOrNull(kind)?.Type;
Transforms\ValueMapping.cs (1)
111
var metadataShape = SchemaShape.Create(Transformer.ValueColumnMetadata.
Schema
);
Transforms\ValueToKeyMappingTransformerImpl.cs (2)
1098
VectorDataViewType srcMetaType = _schema[srcCol].Annotations.
Schema
.GetColumnOrNull(AnnotationUtils.Kinds.KeyValues)?.Type as VectorDataViewType;
1179
VectorDataViewType srcMetaType = _schema[srcCol].Annotations.
Schema
.GetColumnOrNull(AnnotationUtils.Kinds.KeyValues)?.Type as VectorDataViewType;
Microsoft.ML.DataView (7)
DataViewSchema.cs (6)
121
var annotationsString = (Annotations == null || Annotations.
Schema
.Count == 0) ?
122
null : $" {{{string.Join(", ", Annotations.
Schema
.Select(x => x.Name))}}}";
239
var column =
Schema
.GetColumnOrNull(kind);
245
public override string ToString() => string.Join(", ",
Schema
.Select(x => x.Name));
249
Debug.Assert(0 <= index && index <
Schema
.Count);
279
foreach (var column in annotations.
Schema
)
SchemaDebuggerProxy.cs (1)
42
foreach (var column in annotations.
Schema
)
Microsoft.ML.EntryPoints (1)
FeatureCombiner.cs (1)
123
var type = col.Value.Annotations.
Schema
.GetColumnOrNull(AnnotationUtils.Kinds.KeyValues)?.Type as VectorDataViewType;
Microsoft.ML.IntegrationTests (2)
Common.cs (2)
114
AssertEqual(schemaPair.Item1.Annotations.
Schema
, schemaPair.Item1.Annotations.
Schema
);
Microsoft.ML.OnnxConverter (1)
SaveOnnxCommand.cs (1)
251
var metaColumn = column.Annotations.
Schema
.GetColumnOrNull(AnnotationUtils.Kinds.KeyValues);
Microsoft.ML.TensorFlow.Tests (8)
TensorflowTests.cs (8)
586
var metadataType = schema[col].Annotations.
Schema
[TensorFlowUtils.TensorflowOperatorTypeKind].Type;
592
metadataType = schema[col].Annotations.
Schema
.GetColumnOrNull(TensorFlowUtils.TensorflowUpstreamOperatorsKind)?.Type;
598
metadataType = schema[col].Annotations.
Schema
[TensorFlowUtils.TensorflowOperatorTypeKind].Type;
603
metadataType = schema[col].Annotations.
Schema
[TensorFlowUtils.TensorflowUpstreamOperatorsKind].Type;
613
metadataType = schema[col].Annotations.
Schema
[TensorFlowUtils.TensorflowOperatorTypeKind].Type;
618
metadataType = schema[col].Annotations.
Schema
[TensorFlowUtils.TensorflowUpstreamOperatorsKind].Type;
628
metadataType = schema[col].Annotations.
Schema
[TensorFlowUtils.TensorflowOperatorTypeKind].Type;
633
metadataType = schema[col].Annotations.
Schema
[TensorFlowUtils.TensorflowUpstreamOperatorsKind].Type;
Microsoft.ML.TestFramework (3)
DataPipe\TestDataPipeBase.cs (3)
476
var typeSlot = sch[col].Annotations.
Schema
.GetColumnOrNull(AnnotationUtils.Kinds.SlotNames)?.Type;
477
var typeKeys = sch[col].Annotations.
Schema
.GetColumnOrNull(AnnotationUtils.Kinds.KeyValues)?.Type;
480
foreach (var metaColumn in sch[col].Annotations.
Schema
)
Microsoft.ML.TestFrameworkCommon (2)
TestCommon.cs (2)
237
var t1 = sch1[col].Annotations.
Schema
.GetColumnOrNull(kind)?.Type;
238
var t2 = sch2[col].Annotations.
Schema
.GetColumnOrNull(kind)?.Type;
Microsoft.ML.Tests (55)
FakeSchemaTest.cs (1)
50
Assert.Single(metaC.
Schema
);
Scenarios\Api\Estimators\PredictAndMetadata.cs (2)
92
Assert.NotNull(scoredData.Schema["Score"].Annotations.
Schema
.GetColumnOrNull(AnnotationUtils.Kinds.SlotNames));
126
Assert.Null(scoredData2.Schema["Score"].Annotations.
Schema
.GetColumnOrNull(AnnotationUtils.Kinds.SlotNames));
Scenarios\Api\TestApi.cs (9)
231
Assert.True(idv.Schema[0].Annotations.
Schema
.Count == 2);
232
Assert.True(idv.Schema[0].Annotations.
Schema
[0].Name == kindFloat);
233
Assert.True(idv.Schema[0].Annotations.
Schema
[0].Type == coltypeFloat);
234
Assert.True(idv.Schema[0].Annotations.
Schema
[1].Name == kindString);
235
Assert.True(idv.Schema[0].Annotations.
Schema
[1].Type == TextDataViewType.Instance);
237
Assert.True(idv.Schema[1].Annotations.
Schema
.Count == 3);
238
Assert.True(idv.Schema[1].Annotations.
Schema
[0].Name == kindStringArray);
239
Assert.True(idv.Schema[1].Annotations.
Schema
[0].Type is VectorDataViewType vectorType && vectorType.ItemType is TextDataViewType);
240
Assert.Throws<ArgumentOutOfRangeException>(() => idv.Schema[1].Annotations.
Schema
[kindFloat]);
TrainerEstimators\TreeEnsembleFeaturizerTest.cs (3)
66
Assert.Single(treeValuesColumn.Annotations.
Schema
);
84
Assert.Equal(2, treeLeafIdsColumn.Annotations.
Schema
.Count);
107
Assert.Equal(2, treePathIdsColumn.Annotations.
Schema
.Count);
Transformers\CategoricalHashTests.cs (10)
143
Assert.Equal(column.Annotations.
Schema
.Select(x => x.Name), new string[1] { AnnotationUtils.Kinds.SlotNames });
149
Assert.Equal(column.Annotations.
Schema
.Select(x => x.Name), new string[2] { AnnotationUtils.Kinds.SlotNames, AnnotationUtils.Kinds.IsNormalized });
156
Assert.Equal(column.Annotations.
Schema
.Select(x => x.Name), new string[1] { AnnotationUtils.Kinds.SlotNames });
162
Assert.Equal(column.Annotations.
Schema
.Select(x => x.Name), new string[2] { AnnotationUtils.Kinds.SlotNames, AnnotationUtils.Kinds.IsNormalized });
169
Assert.Equal(column.Annotations.
Schema
.Select(x => x.Name), new string[3] { AnnotationUtils.Kinds.SlotNames, AnnotationUtils.Kinds.CategoricalSlotRanges, AnnotationUtils.Kinds.IsNormalized });
181
Assert.Equal(column.Annotations.
Schema
.Select(x => x.Name), new string[3] { AnnotationUtils.Kinds.SlotNames, AnnotationUtils.Kinds.CategoricalSlotRanges, AnnotationUtils.Kinds.IsNormalized });
191
Assert.Equal(column.Annotations.
Schema
.Select(x => x.Name), new string[1] { AnnotationUtils.Kinds.KeyValues });
197
Assert.Equal(column.Annotations.
Schema
.Select(x => x.Name), new string[1] { AnnotationUtils.Kinds.KeyValues });
203
Assert.Equal(column.Annotations.
Schema
.Select(x => x.Name), new string[1] { AnnotationUtils.Kinds.SlotNames });
208
Assert.Equal(column.Annotations.
Schema
.Select(x => x.Name), new string[2] { AnnotationUtils.Kinds.SlotNames, AnnotationUtils.Kinds.IsNormalized });
Transformers\CategoricalTests.cs (12)
221
Assert.Equal(column.Annotations.
Schema
.Select(x => x.Name), new string[1] { AnnotationUtils.Kinds.SlotNames });
227
Assert.Equal(column.Annotations.
Schema
.Select(x => x.Name), new string[2] { AnnotationUtils.Kinds.SlotNames, AnnotationUtils.Kinds.IsNormalized });
234
Assert.Equal(column.Annotations.
Schema
.Select(x => x.Name), new string[1] { AnnotationUtils.Kinds.SlotNames });
240
Assert.Equal(column.Annotations.
Schema
.Select(x => x.Name), new string[2] { AnnotationUtils.Kinds.SlotNames, AnnotationUtils.Kinds.IsNormalized });
247
Assert.Equal(column.Annotations.
Schema
.Select(x => x.Name), new string[3] { AnnotationUtils.Kinds.SlotNames, AnnotationUtils.Kinds.CategoricalSlotRanges, AnnotationUtils.Kinds.IsNormalized });
257
Assert.Equal(column.Annotations.
Schema
.Select(x => x.Name), new string[3] { AnnotationUtils.Kinds.SlotNames, AnnotationUtils.Kinds.CategoricalSlotRanges, AnnotationUtils.Kinds.IsNormalized });
267
Assert.Equal(column.Annotations.
Schema
.Select(x => x.Name), new string[1] { AnnotationUtils.Kinds.KeyValues });
273
Assert.Equal(column.Annotations.
Schema
.Select(x => x.Name), new string[1] { AnnotationUtils.Kinds.KeyValues });
279
Assert.Equal(column.Annotations.
Schema
.Select(x => x.Name), new string[1] { AnnotationUtils.Kinds.SlotNames });
285
Assert.Equal(column.Annotations.
Schema
.Select(x => x.Name), new string[2] { AnnotationUtils.Kinds.SlotNames, AnnotationUtils.Kinds.IsNormalized });
292
Assert.Equal(column.Annotations.
Schema
.Select(x => x.Name), new string[1] { AnnotationUtils.Kinds.SlotNames });
298
Assert.Equal(column.Annotations.
Schema
.Select(x => x.Name), new string[2] { AnnotationUtils.Kinds.SlotNames, AnnotationUtils.Kinds.IsNormalized });
Transformers\ConvertTests.cs (2)
352
Assert.Equal(result.Schema["ConvA"].Annotations.
Schema
.Select(x => x.Name), new string[2] { AnnotationUtils.Kinds.SlotNames, AnnotationUtils.Kinds.IsNormalized });
359
Assert.Equal(result.Schema["ConvB"].Annotations.
Schema
.Select(x => x.Name), new string[1] { AnnotationUtils.Kinds.KeyValues });
Transformers\HashTests.cs (3)
87
Assert.Equal(AnnotationUtils.Kinds.KeyValues, column.Annotations.
Schema
.Single().Name);
92
Assert.Equal(AnnotationUtils.Kinds.KeyValues, column.Annotations.
Schema
.Single().Name);
97
Assert.Equal(AnnotationUtils.Kinds.KeyValues, column.Annotations.
Schema
.Single().Name);
Transformers\KeyToBinaryVectorEstimatorTest.cs (4)
117
Assert.Equal(column.Annotations.
Schema
.Select(x => x.Name), new string[1] { AnnotationUtils.Kinds.SlotNames });
123
Assert.Equal(column.Annotations.
Schema
.Select(x => x.Name), new string[2] { AnnotationUtils.Kinds.SlotNames, AnnotationUtils.Kinds.IsNormalized });
130
Assert.Empty(column.Annotations.
Schema
);
133
Assert.Equal(AnnotationUtils.Kinds.IsNormalized, column.Annotations.
Schema
.Single().Name);
Transformers\KeyToVectorEstimatorTests.cs (8)
136
Assert.Equal(column.Annotations.
Schema
.Select(x => x.Name), new string[1] { AnnotationUtils.Kinds.SlotNames });
142
Assert.Equal(column.Annotations.
Schema
.Select(x => x.Name), new string[3] { AnnotationUtils.Kinds.SlotNames, AnnotationUtils.Kinds.CategoricalSlotRanges, AnnotationUtils.Kinds.IsNormalized });
152
Assert.Equal(column.Annotations.
Schema
.Select(x => x.Name), new string[3] { AnnotationUtils.Kinds.SlotNames, AnnotationUtils.Kinds.CategoricalSlotRanges, AnnotationUtils.Kinds.IsNormalized });
162
Assert.Equal(column.Annotations.
Schema
.Select(x => x.Name), new string[2] { AnnotationUtils.Kinds.SlotNames, AnnotationUtils.Kinds.IsNormalized });
169
Assert.Equal(column.Annotations.
Schema
.Select(x => x.Name), new string[2] { AnnotationUtils.Kinds.CategoricalSlotRanges, AnnotationUtils.Kinds.IsNormalized });
176
Assert.Equal(column.Annotations.
Schema
.Select(x => x.Name), new string[1] { AnnotationUtils.Kinds.IsNormalized });
180
Assert.Equal(column.Annotations.
Schema
.Select(x => x.Name), new string[1] { AnnotationUtils.Kinds.SlotNames });
186
Assert.Equal(column.Annotations.
Schema
.Select(x => x.Name), new string[3] { AnnotationUtils.Kinds.SlotNames, AnnotationUtils.Kinds.CategoricalSlotRanges, AnnotationUtils.Kinds.IsNormalized });
Transformers\ValueMappingTests.cs (1)
574
var allowedKeyValueGetter = annotations.GetGetter<VBuffer<ReadOnlyMemory<char>>>(annotations.
Schema
["KeyValues"]);
Microsoft.ML.TorchSharp (17)
AutoFormerV2\ObjectDetectionTrainer.cs (6)
547
var labelAnnotationsColumn = new SchemaShape.Column(AnnotationUtils.Kinds.SlotNames, SchemaShape.Column.VectorKind.Vector, LabelColumn.Annotations.
Schema
[AnnotationUtils.Kinds.SlotNames].Type, false);
625
var labelColType = LabelColumn.Annotations.
Schema
[AnnotationUtils.Kinds.KeyValues].Type as VectorDataViewType;
636
ValueGetter<VBuffer<T>> getter = LabelColumn.Annotations.GetGetter<VBuffer<T>>(LabelColumn.Annotations.
Schema
[AnnotationUtils.Kinds.KeyValues]);
642
var labelColType = LabelColumn.Annotations.
Schema
[AnnotationUtils.Kinds.KeyValues].Type as VectorDataViewType;
755
var keyType = _parent.LabelColumn.Annotations.
Schema
.GetColumnOrNull(AnnotationUtils.Kinds.KeyValues)?.Type as VectorDataViewType;
778
return labelCol.Annotations.GetGetter<VBuffer<T>>(labelCol.Annotations.
Schema
[AnnotationUtils.Kinds.KeyValues]);
NasBert\NasBertTrainer.cs (4)
436
var labelAnnotationsColumn = new SchemaShape.Column(AnnotationUtils.Kinds.SlotNames, SchemaShape.Column.VectorKind.Vector, LabelColumn.Annotations.
Schema
[AnnotationUtils.Kinds.SlotNames].Type, false);
520
var keyType = Parent.LabelColumn.Annotations.
Schema
.GetColumnOrNull(AnnotationUtils.Kinds.KeyValues)?.Type as VectorDataViewType;
542
var keyType = Parent.LabelColumn.Annotations.
Schema
.GetColumnOrNull(AnnotationUtils.Kinds.KeyValues)?.Type as VectorDataViewType;
563
return labelCol.Annotations.GetGetter<VBuffer<T>>(labelCol.Annotations.
Schema
[AnnotationUtils.Kinds.KeyValues]);
NasBert\NerTrainer.cs (3)
281
var labelColType = LabelColumn.Annotations.
Schema
[AnnotationUtils.Kinds.KeyValues].Type as VectorDataViewType;
287
ValueGetter<VBuffer<T>> getter = LabelColumn.Annotations.GetGetter<VBuffer<T>>(LabelColumn.Annotations.
Schema
[AnnotationUtils.Kinds.KeyValues]);
293
var labelColType = LabelColumn.Annotations.
Schema
[AnnotationUtils.Kinds.KeyValues].Type as VectorDataViewType;
NasBert\TextClassificationTrainer.cs (3)
217
var labelColType = LabelColumn.Annotations.
Schema
[AnnotationUtils.Kinds.KeyValues].Type as VectorDataViewType;
223
ValueGetter<VBuffer<T>> getter = LabelColumn.Annotations.GetGetter<VBuffer<T>>(LabelColumn.Annotations.
Schema
[AnnotationUtils.Kinds.KeyValues]);
229
var labelColType = LabelColumn.Annotations.
Schema
[AnnotationUtils.Kinds.KeyValues].Type as VectorDataViewType;
TorchSharpBaseTrainer.cs (1)
452
return labelCol.Annotations.GetGetter<VBuffer<T>>(labelCol.Annotations.
Schema
[AnnotationUtils.Kinds.KeyValues]);
Microsoft.ML.Transforms (1)
SvmLight\SvmLightLoader.cs (1)
728
var keyValuesCol = col.Annotations.
Schema
.GetColumnOrNull(AnnotationUtils.Kinds.KeyValues);