508 references to
Microsoft.ML.AutoML (7)
AutoMLExperiment\ITrialResultManager.cs (6)
151
var idGetter = rowCursor.GetGetter<int>(_schema
[
"id"]);
152
var lossGetter = rowCursor.GetGetter<float>(_schema
[
"loss"]);
153
var durationGetter = rowCursor.GetGetter<float>(_schema
[
"durationInMilliseconds"]);
154
var peakCpuGetter = rowCursor.GetGetter<float>(_schema
[
"peakCpu"]);
155
var peakMemoryGetter = rowCursor.GetGetter<float>(_schema
[
"peakMemoryInMegaByte"]);
156
var parameterGetter = rowCursor.GetGetter<VBuffer<double>>(_schema
[
"parameter"]);
ColumnInference\TextFileContents.cs (1)
96
var column = idv.Schema
[
"C"];
Microsoft.ML.AutoML.Tests (5)
AutoFitTests.cs (5)
290
Assert.Equal(NumberDataViewType.Single, scoredData.Schema
[
DefaultColumnNames.PredictedLabel].Type);
322
Assert.Equal(NumberDataViewType.Single, scoredData.Schema
[
DefaultColumnNames.PredictedLabel].Type);
353
Assert.Equal(TextDataViewType.Instance, scoredData.Schema
[
DefaultColumnNames.PredictedLabel].Type);
376
Assert.Equal(TextDataViewType.Instance, scoredData.Schema
[
DefaultColumnNames.PredictedLabel].Type);
404
Assert.Equal(TextDataViewType.Instance, scoredData.Schema
[
DefaultColumnNames.PredictedLabel].Type);
Microsoft.ML.Core.Tests (3)
UnitTests\TestEntryPoints.cs (3)
5406
var type = schema
[
"Count"].Annotations.Schema[AnnotationUtils.Kinds.SlotNames].Type;
5409
schema
[
"Count"].GetSlotNames(ref slotNames);
6881
var ndcgGetter = cursor.GetGetter<VBuffer<Double>>(data.Schema
[
"NDCG"]);
Microsoft.ML.Data (37)
DataLoadSave\DataOperationsCatalog.cs (2)
230
var type = input.Schema
[
columnName].Type;
264
var type = input.Schema
[
columnName].Type;
DataView\DataViewConstructionUtils.cs (1)
106
return new AnnotationInfo<T>(kind, value, annotations.Schema
[
kind].Type);
Evaluators\EvaluatorUtils.cs (2)
1391
var countColumn = confusionDataView.Schema
[
MetricKinds.ColumnNames.Count];
1739
using (var cursor = warnings.GetRowCursor(warnings.Schema
[
MetricKinds.ColumnNames.WarningText]))
Prediction\Calibrator.cs (3)
953
var labelCol = scored.Schema
[
labelColumn];
954
var scoreCol = scored.Schema
[
scoreColumn];
1023
var scoreColumn = scored.Schema
[
DefaultColumnNames.Score];
Transforms\ColumnCopying.cs (1)
232
var srcCol = _schema
[
_columns[i].inputColumnName];
Transforms\ConversionsExtensionsCatalog.cs (10)
347
lookupMap.Schema
[
ValueMappingTransformer.DefaultKeyColumnName],
348
lookupMap.Schema
[
ValueMappingTransformer.DefaultValueColumnName],
379
lookupMap.Schema
[
ValueMappingTransformer.DefaultKeyColumnName],
380
lookupMap.Schema
[
ValueMappingTransformer.DefaultValueColumnName],
413
lookupMap.Schema
[
ValueMappingTransformer.DefaultKeyColumnName],
414
lookupMap.Schema
[
ValueMappingTransformer.DefaultValueColumnName],
452
lookupMap.Schema
[
ValueMappingTransformer.DefaultKeyColumnName],
453
lookupMap.Schema
[
ValueMappingTransformer.DefaultValueColumnName],
483
lookupMap.Schema
[
ValueMappingTransformer.DefaultKeyColumnName],
484
lookupMap.Schema
[
ValueMappingTransformer.DefaultValueColumnName],
Transforms\Hashing.cs (1)
1325
_srcTypes[i] = inputSchema
[
_parent.ColumnPairs[i].inputColumnName].Type;
Transforms\KeyToVector.cs (1)
377
var inputMetadata = InputSchema
[
_infos[iinfo].InputColumnName].Annotations;
Transforms\Normalizer.cs (2)
552
activeCols.Add(data.Schema
[
supervisedBinColumn.LabelColumnName]);
647
var typeSrc = input.Schema
[
ColumnPairs[iinfo].inputColumnName].Type;
Transforms\TypeConverting.cs (1)
330
var srcType = input.Schema
[
item.Source ?? item.Name].Type;
Transforms\ValueMapping.cs (10)
560
var keyColumn = idv.Schema
[
keyColumnName];
561
var valueColumn = idv.Schema
[
valueColumnName];
599
return new ValueMappingTransformer(env, lookupMap, lookupMap.Schema
[
keyColumnName], lookupMap.Schema
[
valueColumnName], columns);
689
transformer = new ValueMappingTransformer(env, loader, loader.Schema
[
keyColumnName], loader.Schema
[
valueColumnName], columns);
742
return new ValueMappingTransformer(env, binaryLoader, binaryLoader.Schema
[
keyColumnName], binaryLoader.Schema
[
DefaultValueColumnName], columns);
1283
if (_inputSchema
[
_columns[i].inputColumnName].Type is VectorDataViewType && _valueMap.ValueColumn.Type is VectorDataViewType)
1286
if (_inputSchema
[
_columns[i].inputColumnName].Type is VectorDataViewType)
Transforms\ValueToKeyMappingTransformerImpl.cs (2)
911
var inputColumn = input.Schema
[
info.InputColumnName];
932
var inputColumn = input.Schema
[
info.InputColumnName];
Utilities\ColumnCursor.cs (1)
26
=> GetColumn<T>(data, data.Schema
[
columnName]);
Microsoft.ML.Fairlearn (2)
Metrics\FairlearnMetricCatalog.cs (2)
61
var sensitiveCol = _eval.Schema
[
_sensitiveFeatureColumn];
175
var sensitiveCol = _eval.Schema
[
_sensitiveFeatureColumn];
Microsoft.ML.FastTree (5)
TreeEnsembleFeaturizationEstimator.cs (1)
115
return new TreeEnsembleFeaturizationTransformer(Env, input.Schema, input.Schema
[
FeatureColumnName], model,
TreeEnsembleFeaturizationTransformer.cs (1)
116
_featureDetachedColumn = new DataViewSchema.DetachedColumn(TrainSchema
[
featureColumnName]);
TreeEnsembleFeaturizer.cs (3)
195
if (activeIndices.Contains(OutputSchema
[
_treesColumnName].Index))
205
if (activeIndices.Contains(OutputSchema
[
_leavesColumnName].Index))
215
if (activeIndices.Contains(OutputSchema
[
_pathsColumnName].Index))
Microsoft.ML.IntegrationTests (21)
Debugging.cs (2)
71
var tokensColumn = transformedData.GetColumn<string[]>(transformedData.Schema
[
"FeaturizeTextTokens"]);
83
var featuresColumn = transformedData.GetColumn<float[]>(transformedData.Schema
[
"Features"]);
IntrospectiveTraining.cs (3)
207
var numFeatures = (transformedData.Schema
[
"Features"].Type as VectorDataViewType).Size;
244
var numFeatures = (transformedData.Schema
[
"Features"].Type as VectorDataViewType).Size;
352
transformedData.Schema
[
"CategoricalFeatures"].GetSlotNames(ref categoricalSlotNames);
ModelFiles.cs (11)
299
Assert.False(data.Schema
[
"Features"].HasSlotNames());
302
Assert.True(noLoaderTransformedSchema
[
"Features"].HasSlotNames());
305
Assert.True(data.Schema
[
"Features"].HasSlotNames());
307
data.Schema
[
"Features"].GetSlotNames(ref slotNames);
346
Assert.True(!data.Schema
[
"Features"].HasSlotNames());
349
Assert.True(data.Schema
[
"Features"].HasSlotNames());
370
&& loadedSchema
[
"Features"].HasSlotNames());
378
&& schema
[
"Features"].HasSlotNames());
406
Assert.True(expectedSchema
[
"Features"].HasSlotNames());
435
Assert.True(expectedInputSchema
[
"Features"].HasSlotNames());
471
&& loadedSchema
[
"Features"].HasSlotNames());
SchemaDefinitionTests.cs (5)
53
Assert.Equal((engine1.OutputSchema
[
"Features"].Type as VectorDataViewType).Size, prediction.Features.Length);
56
Assert.Equal((engine2.OutputSchema
[
"Features"].Type as VectorDataViewType).Size, prediction.Features.Length);
74
inputSchemaDefinition["Features"].ColumnType = schema
[
"Features"].Type;
76
outputSchemaDefinition["Features"].ColumnType = new VectorDataViewType(NumberDataViewType.Single, (schema
[
"Features"].Type as VectorDataViewType).Size * 2);
91
Assert.Equal(168, (schema
[
"Features"].Type as VectorDataViewType).Size);
Microsoft.ML.OnnxTransformerTest (19)
DnnImageFeaturizerTest.cs (4)
117
using (var cursor = result.GetRowCursor(result.Schema
[
"output_1"]))
120
var getter = cursor.GetGetter<VBuffer<float>>(result.Schema
[
"output_1"]);
163
using (var cursor = loadedView.GetRowCursor(loadedView.Schema
[
outputNames]))
166
var softMaxGetter = cursor.GetGetter<VBuffer<float>>(loadedView.Schema
[
outputNames]);
OnnxTransformTests.cs (15)
206
var sofMaxOut1Col = loadedView.Schema
[
outputNames[0]];
270
var softmaxOutCol = result.Schema
[
"softmaxout_1"];
321
var softmaxOutCol = result.Schema
[
"softmaxout_1"];
372
var scoreCol = onnx.Schema
[
"softmaxout_1"];
440
var outaCol = onnx.Schema
[
"outa"];
441
var outbCol = onnx.Schema
[
"outb"];
442
using (var curs = onnx.GetRowCursor(outaCol, onnx.Schema
[
"outb"]))
480
var outaCol = onnx.Schema
[
"outa"];
481
var outbCol = onnx.Schema
[
"outb"];
482
using (var curs = onnx.GetRowCursor(outaCol, onnx.Schema
[
"outb"]))
506
outbCol = onnx.Schema
[
"outb"];
699
var outputColumn = transformedDataView.Schema
[
"output"];
700
using (var curs = transformedDataView.GetRowCursor(outputColumn, transformedDataView.Schema
[
"output"]))
752
var outputColumn = transformedDataView.Schema
[
"output"];
753
using (var curs = transformedDataView.GetRowCursor(outputColumn, transformedDataView.Schema
[
"output"]))
Microsoft.ML.PCA (1)
PcaTransformer.cs (1)
527
InputType = schema
[
columnPair.inputColumnName].Type;
Microsoft.ML.PerformanceTests (3)
CacheDataViewBench.cs (1)
64
_col = _cacheDataView.Schema
[
"A"];
HashBench.cs (2)
89
var column = mapper.OutputSchema
[
"Bar"];
106
var column = mapper.OutputSchema
[
"Bar"];
Microsoft.ML.Predictor.Tests (6)
TestPredictors.cs (6)
848
var scoreCol = scored.Schema
[
"Score"];
854
probCol = scored.Schema
[
"Probability"];
855
predCol = scored.Schema
[
"PredictedLabel"];
866
scoreColArray[i] = scoredArray[i].Schema
[
"Score"];
870
probColArray[i] = scoredArray[i].Schema
[
"Probability"];
871
predColArray[i] = scoredArray[i].Schema
[
"PredictedLabel"];
Microsoft.ML.Samples (43)
Dynamic\DataOperations\LoadFromEnumerable.cs (2)
40
var featureColumn = data.Schema
[
"Features"].Type as VectorDataViewType;
84
featureColumn = data2.Schema
[
"Features"].Type as VectorDataViewType;
Dynamic\DataOperations\LoadingSvmLight.cs (3)
92
var labelGetter = cursor.GetGetter<float>(svmData.Schema
[
"Label"]);
93
var weightGetter = cursor.GetGetter<float>(svmData.Schema
[
"Weight"]);
94
var featuresGetter = cursor.GetGetter<VBuffer<float>>(svmData.Schema
[
"Features"]);
Dynamic\NgramExtraction.cs (4)
88
transformedData_onechars.Schema
[
"CharsUnigrams"]
93
.Schema
[
"CharsUnigrams"]);
104
.Schema
[
"CharsTwograms"]);
106
transformedData_twochars.Schema
[
"CharsTwograms"]
Dynamic\SimpleDataViewImplementation.cs (2)
39
var textColumn = transformedDataView.Schema
[
"Text"];
40
var tokensColumn = transformedDataView.Schema
[
"TokenizedText"];
Dynamic\TensorFlow\TextClassification.cs (4)
66
var featuresType = (VectorDataViewType)schema
[
"Features"].Type;
70
var predictionType = (VectorDataViewType)schema
[
"Prediction/Softmax"]
106
lookupMap.Schema
[
"Words"],
107
lookupMap.Schema
[
"Ids"],
Dynamic\TextTransform.cs (2)
99
.Schema
[
defaultColumnName]);
113
.Schema
[
customizedColumnName]);
Dynamic\Trainers\MulticlassClassification\LogLossPerClass.cs (1)
52
transformedTestData.Schema
[
"PredictedLabel"].GetKeyValues(ref keys);
Dynamic\Transforms\Categorical\OneHotEncoding.cs (1)
78
transformedData.Schema
[
columnName]);
Dynamic\Transforms\Categorical\OneHotHashEncoding.cs (1)
78
transformedData.Schema
[
columnName]);
Dynamic\Transforms\Conversion\Hash.cs (1)
80
transformedData.Schema
[
"CategoryHashed"].Annotations.GetValue(
Dynamic\Transforms\Conversion\HashWithOptions.cs (1)
94
transformedData.Schema
[
"CategoryHashed"].Annotations.GetValue(
Dynamic\Transforms\Conversion\KeyToValueToKey.cs (1)
92
ReadOnlyMemory<char>>>(transformedDataDefault.Schema
[
nameof(
Dynamic\Transforms\Conversion\MapValueIdvLookup.cs (1)
46
lookupIdvMap, lookupIdvMap.Schema
[
"Value"], lookupIdvMap.Schema[
Dynamic\Transforms\ImageAnalytics\ConvertToGrayScale.cs (2)
77
.Schema
[
"ImagePath"]);
80
.Schema
[
"Name"]);
Dynamic\Transforms\ImageAnalytics\ConvertToImage.cs (1)
69
var imageGetter = cursor.GetGetter<MLImage>(cursor.Schema
[
"Image"]);
Dynamic\Transforms\ImageAnalytics\ExtractPixels.cs (2)
86
.Schema
[
"ImagePath"]);
89
.Schema
[
"Name"]);
Dynamic\Transforms\ImageAnalytics\LoadImages.cs (2)
75
.Schema
[
"ImagePath"]);
78
.Schema
[
"Name"]);
Dynamic\Transforms\ImageAnalytics\ResizeImages.cs (2)
79
.Schema
[
"ImagePath"]);
82
.Schema
[
"Name"]);
Dynamic\Transforms\Projection\VectorWhiten.cs (1)
58
transformedData.Schema
[
nameof(SampleVectorOfNumbersData.Features)]);
Dynamic\Transforms\Projection\VectorWhitenWithOptions.cs (1)
58
transformedData.Schema
[
nameof(SampleVectorOfNumbersData.Features)]);
Dynamic\Transforms\Text\ProduceHashedNgrams.cs (2)
76
transformedDataView.Schema
[
"NgramFeatures"].GetSlotNames(ref slotNames);
78
transformedDataView.Schema
[
"NgramFeatures"]);
Dynamic\Transforms\Text\ProduceHashedWordBags.cs (2)
75
transformedDataView.Schema
[
"BagOfWordFeatures"].GetSlotNames(ref
79
float>>(transformedDataView.Schema
[
"BagOfWordFeatures"]);
Dynamic\Transforms\Text\ProduceNgrams.cs (2)
84
transformedDataView.Schema
[
"NgramFeatures"].GetSlotNames(ref slotNames);
86
float>>(transformedDataView.Schema
[
"NgramFeatures"]);
Dynamic\Transforms\Text\ProduceWordBags.cs (2)
81
transformedDataView.Schema
[
"BagOfWordFeatures"].GetSlotNames(ref
85
float>>(transformedDataView.Schema
[
"BagOfWordFeatures"]);
Microsoft.ML.Samples.GPU (4)
docs\samples\Microsoft.ML.Samples\Dynamic\TensorFlow\TextClassification.cs (4)
66
var featuresType = (VectorDataViewType)schema
[
"Features"].Type;
70
var predictionType = (VectorDataViewType)schema
[
"Prediction/Softmax"]
106
lookupMap.Schema
[
"Words"],
107
lookupMap.Schema
[
"Ids"],
Microsoft.ML.TensorFlow.Tests (37)
TensorFlowEstimatorTests.cs (9)
172
using (var cursor = result.GetRowCursor(result.Schema
[
"Output"]))
175
var getter = cursor.GetGetter<VBuffer<float>>(result.Schema
[
"Output"]);
215
Assert.Equal(new VectorDataViewType(NumberDataViewType.Single, 0, 10), schema
[
"Output"].Type);
229
Assert.Equal(new VectorDataViewType(NumberDataViewType.Single, 10), schema
[
"Output"].Type);
265
using (var cursor = result.GetRowCursor(result.Schema
[
"Output"]))
268
var getter = cursor.GetGetter<VBuffer<float>>(result.Schema
[
"Output"]);
303
var aGetter = cursor.GetGetter<VBuffer<float>>(result.Schema
[
"a"]);
304
var bGetter = cursor.GetGetter<VBuffer<float>>(result.Schema
[
"b"]);
305
var cGetter = cursor.GetGetter<VBuffer<float>>(result.Schema
[
"c"]);
TensorflowTests.cs (28)
513
using (var curs = tf.GetRowCursor(tf.Schema
[
"image_tensor"], tf.Schema
[
"detection_boxes"], tf.Schema
[
"detection_scores"], tf.Schema
[
"detection_classes"], tf.Schema
[
"num_detections"]))
515
var getInput = curs.GetGetter<VBuffer<byte>>(tf.Schema
[
"image_tensor"]);
516
var getBoxes = curs.GetGetter<VBuffer<float>>(tf.Schema
[
"detection_boxes"]);
517
var getScores = curs.GetGetter<VBuffer<float>>(tf.Schema
[
"detection_scores"]);
518
var getNum = curs.GetGetter<VBuffer<float>>(tf.Schema
[
"num_detections"]);
519
var getClasses = curs.GetGetter<VBuffer<float>>(tf.Schema
[
"detection_classes"]);
561
using (var curs = tf.GetRowCursor(tf.Schema
[
inputName], tf.Schema
[
outputName]))
563
var get = curs.GetGetter<VBuffer<float>>(tf.Schema
[
"softmax2_pre_activation"]);
564
var getInput = curs.GetGetter<VBuffer<float>>(tf.Schema
[
"input"]);
586
var metadataType = schema[col].Annotations.Schema
[
TensorFlowUtils.TensorflowOperatorTypeKind].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;
1031
using (var cursor = idv.GetRowCursor(idv.Schema
[
"Output"]))
1032
using (var cursor2 = idv.GetRowCursor(idv.Schema
[
"Output"]))
1037
cursor.GetGetter<VBuffer<float>>(idv.Schema
[
"Output"]);
1039
cursor2.GetGetter<VBuffer<float>>(idv.Schema
[
"Output"]);
1085
var getter = cursor.GetGetter<VBuffer<float>>(idv.Schema
[
"Output"]);
1281
.Append(_mlContext.Transforms.Conversion.MapValue(lookupMap, lookupMap.Schema
[
"Words"], lookupMap.Schema
[
"Ids"],
Microsoft.ML.TestFramework (7)
BaseTestBaseline.cs (3)
698
var leftColumn = left.Schema
[
leftColumnName];
729
var leftColumn = left.Schema
[
leftColumnName];
730
var rightColumn = right.Schema
[
rightColumnName];
DataPipe\TestDataPipe.cs (4)
1509
using (var cursor = loader.GetRowCursor(loader.Schema
[
"DT"], loader.Schema
[
"DT1"]))
1511
var getter = cursor.GetGetter<VBuffer<float>>(loader.Schema
[
"DT"]);
1512
var getter1 = cursor.GetGetter<VBuffer<float>>(loader.Schema
[
"DT1"]);
Microsoft.ML.Tests (234)
CachingTests.cs (4)
85
data.GetColumn<float[]>(data.Schema
[
"Features"]).ToArray();
86
data.GetColumn<float[]>(data.Schema
[
"Features"]).ToArray();
92
data.GetColumn<float[]>(data.Schema
[
"Features"]).ToArray();
93
data.GetColumn<float[]>(data.Schema
[
"Features"]).ToArray();
ImagesTests.cs (23)
154
var pathGetter = cursor.GetGetter<ReadOnlyMemory<char>>(cropped.Schema
[
"ImagePath"]);
156
var imageCropGetter = cursor.GetGetter<MLImage>(cropped.Schema
[
"ImageCropped"]);
203
var imageGetter = cursor.GetGetter<MLImage>(grey.Schema
[
"ImageGrey"]);
363
var imageGetter = cursor.GetGetter<MLImage>(backToImages.Schema
[
"ImageRestored"]);
366
var imageCropGetter = cursor.GetGetter<MLImage>(backToImages.Schema
[
"ImageCropped"]);
438
var imageGetter = cursor.GetGetter<MLImage>(backToImages.Schema
[
"ImageRestored"]);
441
var imageCropGetter = cursor.GetGetter<MLImage>(backToImages.Schema
[
"ImageCropped"]);
514
var imageGetter = cursor.GetGetter<MLImage>(backToImages.Schema
[
"ImageRestored"]);
517
var imageCropGetter = cursor.GetGetter<MLImage>(backToImages.Schema
[
"ImageCropped"]);
589
var imageGetter = cursor.GetGetter<MLImage>(backToImages.Schema
[
"ImageRestored"]);
592
var imageCropGetter = cursor.GetGetter<MLImage>(backToImages.Schema
[
"ImageCropped"]);
664
var imageGetter = cursor.GetGetter<MLImage>(backToImages.Schema
[
"ImageRestored"]);
667
var imageCropGetter = cursor.GetGetter<MLImage>(backToImages.Schema
[
"ImageCropped"]);
740
var imageGetter = cursor.GetGetter<MLImage>(backToImages.Schema
[
"ImageRestored"]);
743
var imageCropGetter = cursor.GetGetter<MLImage>(backToImages.Schema
[
"ImageCropped"]);
815
var imageGetter = cursor.GetGetter<MLImage>(backToImages.Schema
[
"ImageRestored"]);
818
var imageCropGetter = cursor.GetGetter<MLImage>(backToImages.Schema
[
"ImageCropped"]);
891
var imageGetter = cursor.GetGetter<MLImage>(backToImages.Schema
[
"ImageRestored"]);
894
var imageCropGetter = cursor.GetGetter<MLImage>(backToImages.Schema
[
"ImageCropped"]);
965
var imageGetter = cursor.GetGetter<MLImage>(backToImages.Schema
[
"ImageRestored"]);
968
var imageCropGetter = cursor.GetGetter<MLImage>(backToImages.Schema
[
"ImageCropped"]);
1140
var pathGetter = cursor.GetGetter<ReadOnlyMemory<char>>(tsvFile.Schema
[
"ImagePath"]);
1141
var labelGetter = cursor.GetGetter<ReadOnlyMemory<char>>(tsvFile.Schema
[
"Label"]);
OnnxConversionTest.cs (2)
1523
transformedData.Schema
[
columnName].GetSlotNames(ref mlNetSlots);
1524
onnxResult.Schema
[
columnName].GetSlotNames(ref onnxSlots);
RangeFilterTests.cs (2)
28
var cnt = data1.GetColumn<float>(data1.Schema
[
"Floats"]).Count();
33
cnt = data2.GetColumn<float>(data.Schema
[
"Floats"]).Count();
Scenarios\Api\CookbookSamples\CookbookSamplesDynamicApi.cs (7)
64
var featureColumns = transformedData.GetColumn<string[]>(transformedData.Schema
[
"AllFeatures"])
516
var messageTexts = data.GetColumn<string>(data.Schema
[
"Message"]).Take(20).ToArray();
550
var embeddings = transformedData.GetColumn<float[]>(transformedData.Schema
[
"Embeddings"]).Take(10).ToArray();
551
var unigrams = transformedData.GetColumn<float[]>(transformedData.Schema
[
"BagOfWords"]).Take(10).ToArray();
590
var catColumns = data.GetColumn<string[]>(data.Schema
[
"CategoricalFeatures"]).Take(10).ToArray();
606
var categoricalBags = transformedData.GetColumn<float[]>(transformedData.Schema
[
"CategoricalBag"]).Take(10).ToArray();
607
var workclasses = transformedData.GetColumn<float[]>(transformedData.Schema
[
"WorkclassOneHotTrimmed"]).Take(10).ToArray();
Scenarios\Api\Estimators\PredictAndMetadata.cs (4)
47
engine.OutputSchema
[
nameof(IrisPrediction.Score)].Annotations.GetValue(AnnotationUtils.Kinds.TrainingLabelValues, ref originalLabels);
61
engine.OutputSchema
[
nameof(IrisPrediction.PredictedLabel)].GetKeyValues(ref keys);
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 (11)
240
Assert.Throws<ArgumentOutOfRangeException>(() => idv.Schema[1].Annotations.Schema
[
kindFloat]);
358
return view.GetColumn<ReadOnlyMemory<char>>(view.Schema
[
"Workclass"]).Select(x => x.ToString()).ToList();
457
var ids = split.TestSet.GetColumn<int>(split.TestSet.Schema
[
nameof(Input.Id)]);
461
ids = split.TestSet.GetColumn<int>(split.TestSet.Schema
[
nameof(Input.Id)]);
465
ids = split.TestSet.GetColumn<int>(split.TestSet.Schema
[
nameof(Input.Id)]);
469
ids = split.TestSet.GetColumn<int>(split.TestSet.Schema
[
nameof(Input.Id)]);
473
ids = split.TrainSet.GetColumn<int>(split.TrainSet.Schema
[
nameof(Input.Id)]);
477
ids = split.TestSet.GetColumn<int>(split.TestSet.Schema
[
nameof(Input.Id)]);
483
ids = split.TestSet.GetColumn<int>(split.TestSet.Schema
[
nameof(Input.Id)]);
501
var idsTest1 = cvSplits[0].TestSet.GetColumn<int>(cvSplits[0].TestSet.Schema
[
nameof(Input.Id)]);
502
var idsTest2 = cvSplits[1].TestSet.GetColumn<int>(cvSplits[1].TestSet.Schema
[
nameof(Input.Id)]);
Scenarios\GetColumnTests.cs (13)
36
var enum1 = data.GetColumn<float>(data.Schema
[
"floatScalar"]).ToArray();
37
var enum2 = data.GetColumn<float[]>(data.Schema
[
"floatVector"]).ToArray();
38
var enum3 = data.GetColumn<VBuffer<float>>(data.Schema
[
"floatVector"]).ToArray();
40
var enum4 = data.GetColumn<string>(data.Schema
[
"stringScalar"]).ToArray();
41
var enum5 = data.GetColumn<string[]>(data.Schema
[
"stringVector"]).ToArray();
44
mustFail(() => data.GetColumn<float[]>(data.Schema
[
"floatScalar"]));
45
mustFail(() => data.GetColumn<int[]>(data.Schema
[
"floatVector"]));
46
mustFail(() => data.GetColumn<int>(data.Schema
[
"floatScalar"]));
47
mustFail(() => data.GetColumn<int?>(data.Schema
[
"floatScalar"]));
48
mustFail(() => data.GetColumn<string>(data.Schema
[
"floatScalar"]));
59
mustFail(() => data.GetColumn<float>(data1.Schema
[
"floatScalar"]));
61
mustFail(() => data.GetColumn<float>(data1.Schema
[
"anotherFloatVector"]));
63
mustFail(() => data.GetColumn<string[]>(data1.Schema
[
"stringVector"]).ToArray());
SvmLightTests.cs (19)
44
Assert.True(data.Schema
[
"Features"].Type.GetValueCount() == expectedInputSize);
157
Assert.True(data.Schema
[
"Features"].Type.GetValueCount() == 3);
186
Assert.True(data.Schema
[
"Features"].Type.GetValueCount() == 3);
208
Assert.True(data.Schema
[
"Features"].Type.GetValueCount() == 1);
241
var featuresGetter = curs.GetGetter<VBuffer<float>>(view.Schema
[
"Features"]);
259
using (var curs = data.GetRowCursor(data.Schema
[
"Label"]))
261
var getter = curs.GetGetter<float>(data.Schema
[
"Label"]);
278
using (var curs = data.GetRowCursor(data.Schema
[
"GroupId"]))
280
var getter = curs.GetGetter<ulong>(data.Schema
[
"GroupId"]);
326
using (var curs = data.GetRowCursor(data.Schema
[
"Features"]))
328
var getter = curs.GetGetter<VBuffer<float>>(data.Schema
[
"Features"]);
352
using (var curs = data.GetRowCursor(data.Schema
[
"Features"]))
354
var getter = curs.GetGetter<VBuffer<float>>(data.Schema
[
"Features"]);
371
using (var curs = data.GetRowCursor(data.Schema
[
"Features"]))
373
var getter = curs.GetGetter<VBuffer<float>>(data.Schema
[
"Features"]);
390
using (var curs = data.GetRowCursor(data.Schema
[
"Features"]))
392
var getter = curs.GetGetter<VBuffer<float>>(data.Schema
[
"Features"]);
421
using (var curs = data.GetRowCursor(data.Schema
[
"Features"]))
423
var getter = curs.GetGetter<VBuffer<float>>(data.Schema
[
"Features"]);
TermEstimatorTests.cs (3)
166
var aGetter = cursor.GetGetter<uint>(result.Schema
[
"TermA"]);
167
var bGetter = cursor.GetGetter<uint>(result.Schema
[
"TermB"]);
168
var cGetter = cursor.GetGetter<uint>(result.Schema
[
"TermC"]);
TextLoaderTests.cs (31)
1082
var delegatePeriod = cursorPeriod.GetGetter<VBuffer<Single>>(dataViewPeriod.Schema
[
"Features"]);
1083
var delegateComma = cursorComma.GetGetter<VBuffer<Single>>(dataViewPeriod.Schema
[
"Features"]);
1320
var idGetter = curs.GetGetter<int>(data.Schema
[
"id"]);
1321
var descriptionGetter = curs.GetGetter<ReadOnlyMemory<char>>(data.Schema
[
"description"]);
1322
var animalGetter = curs.GetGetter<ReadOnlyMemory<char>>(data.Schema
[
"animal"]);
1499
var delegateBaselineId = cursorBaseline.GetGetter<Int32>(baselineDV.Schema
[
"id"]);
1500
var delegateBaselineDescription = cursorBaseline.GetGetter<ReadOnlyMemory<char>>(baselineDV.Schema
[
"description"]);
1501
var delegateBaselineDate = cursorBaseline.GetGetter<DateTime>(baselineDV.Schema
[
"date"]);
1502
var delegateBaselineSing1 = cursorBaseline.GetGetter<Single>(baselineDV.Schema
[
"sing1"]);
1503
var delegateBaselineSing2 = cursorBaseline.GetGetter<Single>(baselineDV.Schema
[
"sing2"]);
1504
var delegateBaselineSing3 = cursorBaseline.GetGetter<Single>(baselineDV.Schema
[
"sing3"]);
1505
var delegateBaselineSing4 = cursorBaseline.GetGetter<Single>(baselineDV.Schema
[
"sing4"]);
1506
var delegateBaselineDoub1 = cursorBaseline.GetGetter<Double>(baselineDV.Schema
[
"doub1"]);
1507
var delegateBaselineDoub2 = cursorBaseline.GetGetter<Double>(baselineDV.Schema
[
"doub2"]);
1508
var delegateBaselineDoub3 = cursorBaseline.GetGetter<Double>(baselineDV.Schema
[
"doub3"]);
1509
var delegateBaselineDoub4 = cursorBaseline.GetGetter<Double>(baselineDV.Schema
[
"doub4"]);
1511
var delegateTestId = cursorTest.GetGetter<Int32>(testDV.Schema
[
"id"]);
1512
var delegateTestDescription = cursorTest.GetGetter<ReadOnlyMemory<char>>(testDV.Schema
[
"description"]);
1513
var delegateTestDate = cursorTest.GetGetter<DateTime>(testDV.Schema
[
"date"]);
1514
var delegateTestSing1 = cursorTest.GetGetter<Single>(testDV.Schema
[
"sing1"]);
1515
var delegateTestSing2 = cursorTest.GetGetter<Single>(testDV.Schema
[
"sing2"]);
1516
var delegateTestSing3 = cursorTest.GetGetter<Single>(testDV.Schema
[
"sing3"]);
1517
var delegateTestSing4 = cursorTest.GetGetter<Single>(testDV.Schema
[
"sing4"]);
1518
var delegateTestSingFt1 = cursorTest.GetGetter<VBuffer<Single>>(testDV.Schema
[
"singFt1"]);
1519
var delegateTestSingFt2 = cursorTest.GetGetter<VBuffer<Single>>(testDV.Schema
[
"singFt2"]);
1520
var delegateTestDoub1 = cursorTest.GetGetter<Double>(testDV.Schema
[
"doub1"]);
1521
var delegateTestDoub2 = cursorTest.GetGetter<Double>(testDV.Schema
[
"doub2"]);
1522
var delegateTestDoub3 = cursorTest.GetGetter<Double>(testDV.Schema
[
"doub3"]);
1523
var delegateTestDoub4 = cursorTest.GetGetter<Double>(testDV.Schema
[
"doub4"]);
1524
var delegateTestDoubFt1 = cursorTest.GetGetter<VBuffer<Double>>(testDV.Schema
[
"doubFt1"]);
1525
var delegateTestDoubFt2 = cursorTest.GetGetter<VBuffer<Double>>(testDV.Schema
[
"doubFt2"]);
TrainerEstimators\SdcaTests.cs (4)
138
var scores1 = prediction1.GetColumn<float>(prediction1.Schema
[
"Score"]).ToArray();
139
var scores2 = prediction2.GetColumn<float>(prediction2.Schema
[
"Score"]).ToArray();
197
var scores1 = prediction1.GetColumn<float[]>(prediction1.Schema
[
"Score"]).ToArray();
198
var scores2 = prediction2.GetColumn<float[]>(prediction2.Schema
[
"Score"]).ToArray();
TrainerEstimators\SymSgdClassificationTests.cs (3)
47
var col1 = data.GetColumn<float>(data.Schema
[
"Score"]).Take(numExamples).ToArray();
48
var col2 = outInitData.GetColumn<float>(outInitData.Schema
[
"Score"]).Take(numExamples).ToArray();
49
var col3 = outNoInitData.GetColumn<float>(outNoInitData.Schema
[
"Score"]).Take(numExamples).ToArray();
TrainerEstimators\TreeEnsembleFeaturizerTest.cs (2)
149
var treeFeaturizer = new TreeEnsembleFeaturizationTransformer(ML, dataView.Schema, dataView.Schema
[
"Features"], model.Model.SubModel,
200
var treeFeaturizer = new TreeEnsembleFeaturizationTransformer(ML, dataView.Schema, dataView.Schema
[
"Features"], model.Model,
Transformers\CategoricalHashTests.cs (10)
142
var column = result.Schema
[
"CatA"];
148
column = result.Schema
[
"CatB"];
155
column = result.Schema
[
"CatC"];
161
column = result.Schema
[
"CatD"];
168
column = result.Schema
[
"CatE"];
180
column = result.Schema
[
"CatF"];
190
column = result.Schema
[
"CatG"];
196
column = result.Schema
[
"CatH"];
202
column = result.Schema
[
"CatI"];
207
column = result.Schema
[
"CatJ"];
Transformers\CategoricalTests.cs (13)
143
output.Schema
[
"CatA"].GetSlotNames(ref slotNames);
220
var column = result.Schema
[
"CatA"];
226
column = result.Schema
[
"CatB"];
233
column = result.Schema
[
"CatC"];
239
column = result.Schema
[
"CatD"];
246
column = result.Schema
[
"CatE"];
256
column = result.Schema
[
"CatF"];
266
column = result.Schema
[
"CatG"];
272
column = result.Schema
[
"CatH"];
278
column = result.Schema
[
"CatI"];
284
column = result.Schema
[
"CatJ"];
291
column = result.Schema
[
"CatK"];
297
column = result.Schema
[
"CatL"];
Transformers\ConvertTests.cs (6)
296
output.Schema
[
"CatA"].Annotations.GetValue(AnnotationUtils.Kinds.KeyValues, ref slotNames);
352
Assert.Equal(result.Schema
[
"ConvA"].Annotations.Schema.Select(x => x.Name), new string[2] { AnnotationUtils.Kinds.SlotNames, AnnotationUtils.Kinds.IsNormalized });
354
result.Schema
[
"ConvA"].GetSlotNames(ref slots);
357
Assert.True(result.Schema
[
"ConvA"].IsNormalized());
359
Assert.Equal(result.Schema
[
"ConvB"].Annotations.Schema.Select(x => x.Name), new string[1] { AnnotationUtils.Kinds.KeyValues });
360
result.Schema
[
"ConvB"].GetKeyValues(ref slots);
Transformers\CustomMappingTests.cs (4)
184
var outputs = transformedData.GetColumn<bool>(transformedData.Schema
[
nameof(MyStatefulOutput.FirstAppearance)]);
202
Assert.True(filteredData.GetColumn<float>(filteredData.Schema
[
nameof(MyInput.Float1)]).All(x => x % 2 == 1));
241
var values = filteredData.GetColumn<int>(filteredData.Schema
[
nameof(MyFilterInput.Value)]);
242
var counter = filteredData.GetColumn<int>(filteredData.Schema
[
nameof(MyFilterInput.Counter)]);
Transformers\ExpressionTransformerTests.cs (9)
50
Assert.True(transformed.Schema
[
"Expr1"].Type == NumberDataViewType.Double);
51
Assert.Equal(6, transformed.Schema
[
"Expr2"].Type.GetValueCount());
52
Assert.True(transformed.Schema
[
"Expr2"].Type.GetItemType() == NumberDataViewType.Single);
53
Assert.True(transformed.Schema
[
"Expr3"].Type == NumberDataViewType.Single);
54
Assert.True(transformed.Schema
[
"Expr4"].Type.GetItemType() == NumberDataViewType.Double);
55
Assert.Equal(6, transformed.Schema
[
"Expr4"].Type.GetValueCount());
56
Assert.True(transformed.Schema
[
"Expr5"].Type == NumberDataViewType.Int32);
57
Assert.True(transformed.Schema
[
"Expr6"].Type.GetItemType() == TextDataViewType.Instance);
58
Assert.Equal(7, transformed.Schema
[
"Expr6"].Type.GetValueCount());
Transformers\HashTests.cs (13)
86
var column = result.Schema
[
"HashA"];
91
column = result.Schema
[
"HashAUnlim"];
96
column = result.Schema
[
"HashAUnlimOrdered"];
142
var col = mapper.OutputSchema
[
"Bar"];
366
var hashedCol = hashed.Schema
[
"Features"];
390
Assert.True(transformed.Schema
[
"D"].Type.IsKnownSizeVector());
391
Assert.True(transformed.Schema
[
"DHashed"].Type.IsKnownSizeVector());
392
Assert.Equal(1, transformed.Schema
[
"DHashed"].Type.GetValueCount());
393
Assert.False(transformed.Schema
[
"DHashedCombined"].Type.IsKnownSizeVector());
394
Assert.Equal(1, transformed.Schema
[
"DHashedCombined"].Type.GetValueCount());
396
var aHashed = transformed.GetColumn<uint>(transformed.Schema
[
"AHashed"]);
397
var dHashed = transformed.GetColumn<VBuffer<uint>>(transformed.Schema
[
"DHashed"]).Select(buffer =>
402
var dHashedCombined = transformed.GetColumn<uint>(transformed.Schema
[
"DHashedCombined"]);
Transformers\KeyToBinaryVectorEstimatorTest.cs (4)
116
var column = result.Schema
[
"CatA"];
122
column = result.Schema
[
"CatB"];
129
column = result.Schema
[
"CatC"];
132
column = result.Schema
[
"CatD"];
Transformers\KeyToVectorEstimatorTests.cs (8)
135
var column = result.Schema
[
"CatA"];
141
column = result.Schema
[
"CatB"];
151
column = result.Schema
[
"CatC"];
161
column = result.Schema
[
"CatD"];
168
column = result.Schema
[
"CatE"];
175
column = result.Schema
[
"CatF"];
179
column = result.Schema
[
"CatG"];
185
column = result.Schema
[
"CatH"];
Transformers\NormalizerTests.cs (2)
1063
var dimensions1 = (transformedData.Schema
[
"output"].Type as VectorDataViewType).Dimensions;
1064
var dimensions2 = (transformedData2.Schema
[
"output"].Type as VectorDataViewType).Dimensions;
Transformers\TextFeaturizerTests.cs (2)
122
var featureGetter = cursor.GetGetter<VBuffer<float>>(cursor.Schema
[
"Features"]);
164
var featureGetter = cursor.GetGetter<VBuffer<float>>(cursor.Schema
[
"Features"]);
Transformers\ValueMappingTests.cs (35)
63
lookupMap.Schema
[
ValueMappingTransformer.DefaultKeyColumnName],
64
lookupMap.Schema
[
ValueMappingTransformer.DefaultValueColumnName],
71
var getterD = cursor.GetGetter<int>(result.Schema
[
"D"]);
72
var getterE = cursor.GetGetter<int>(result.Schema
[
"E"]);
73
var getterF = cursor.GetGetter<int>(result.Schema
[
"F"]);
101
lookupMap.Schema
[
ValueMappingTransformer.DefaultKeyColumnName],
102
lookupMap.Schema
[
ValueMappingTransformer.DefaultValueColumnName],
116
var getterVecD = cursor.GetGetter<VBuffer<int>>(result.Schema
[
"VecD"]);
117
var getterE = cursor.GetGetter<int>(result.Schema
[
"E"]);
118
var getterF = cursor.GetGetter<int>(result.Schema
[
"F"]);
185
lookupMap.Schema
[
ValueMappingTransformer.DefaultKeyColumnName],
186
lookupMap.Schema
[
ValueMappingTransformer.DefaultValueColumnName],
200
var getterD = cursor.GetGetter<VBuffer<int>>(result.Schema
[
"D"]);
201
var getterE = cursor.GetGetter<VBuffer<int>>(result.Schema
[
"E"]);
202
var getterF = cursor.GetGetter<VBuffer<int>>(result.Schema
[
"F"]);
236
var estimator = new ValueMappingEstimator(Env, mapView, mapView.Schema
[
"Key"], mapView.Schema
[
"Value"], new[] { ("D", "A"), ("E", "B"), ("F", "C") });
241
var getterD = cursor.GetGetter<int>(result.Schema
[
"D"]);
242
var getterE = cursor.GetGetter<int>(result.Schema
[
"E"]);
243
var getterF = cursor.GetGetter<int>(result.Schema
[
"F"]);
274
lookupMap.Schema
[
ValueMappingTransformer.DefaultKeyColumnName],
275
lookupMap.Schema
[
ValueMappingTransformer.DefaultValueColumnName],
315
lookupMap.Schema
[
ValueMappingTransformer.DefaultKeyColumnName],
316
lookupMap.Schema
[
ValueMappingTransformer.DefaultValueColumnName],
323
var getterD = cursor.GetGetter<int>(result.Schema
[
"D"]);
324
var getterE = cursor.GetGetter<int>(result.Schema
[
"E"]);
325
var getterF = cursor.GetGetter<int>(result.Schema
[
"F"]);
353
lookupMap.Schema
[
ValueMappingTransformer.DefaultKeyColumnName],
354
lookupMap.Schema
[
ValueMappingTransformer.DefaultValueColumnName],
565
var getterD = cursor.GetGetter<ReadOnlyMemory<char>>(result.Schema
[
"DOutput"]);
573
var annotations = result.Schema
[
"D"].Annotations;
574
var allowedKeyValueGetter = annotations.GetGetter<VBuffer<ReadOnlyMemory<char>>>(annotations.Schema
[
"KeyValues"]);
744
var t = result.GetColumn<uint>(result.Schema
[
"Label"]);
778
var pipeline = ML.Transforms.Conversion.MapValue("PriceCategory", lookupIdvMap, lookupIdvMap.Schema
[
"Value"], lookupIdvMap.Schema
[
"Category"], "Price");
Microsoft.ML.TimeSeries (2)
SrCnnEntireAnomalyDetector.cs (2)
246
return input.GetGetter<double>(input.Schema
[
_inputColumnName]);
339
ValueGetter<double> srcGetter = input.GetGetter<double>(input.Schema
[
inputCol]);
Microsoft.ML.TorchSharp (38)
AutoFormerV2\ObjectDetectionTrainer.cs (9)
288
DataViewRowCursor cursor = input.GetRowCursor(input.Schema
[
Parent.Option.LabelColumnName], input.Schema
[
Parent.Option.BoundingBoxColumnName], input.Schema
[
Parent.Option.ImageColumnName]);
290
var boundingBoxGetter = cursor.GetGetter<VBuffer<float>>(input.Schema
[
Parent.Option.BoundingBoxColumnName]);
291
var imageGetter = cursor.GetGetter<MLImage>(input.Schema
[
Parent.Option.ImageColumnName]);
292
var labelGetter = cursor.GetGetter<VBuffer<uint>>(input.Schema
[
Parent.Option.LabelColumnName]);
808
getImage = input.GetGetter<MLImage>(input.Schema
[
_parent.Options.ImageColumnName]);
832
getImage = input.GetGetter<MLImage>(input.Schema
[
_parent.Options.ImageColumnName]);
856
getImage = input.GetGetter<MLImage>(input.Schema
[
_parent.Options.ImageColumnName]);
NasBert\NasBertTrainer.cs (7)
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]);
226
Sentence1Getter = cursor.GetGetter<ReadOnlyMemory<char>>(input.Schema
[
Parent.BertOptions.Sentence1ColumnName]);
227
Sentence2Getter = Parent.BertOptions.Sentence2ColumnName != default ? cursor.GetGetter<ReadOnlyMemory<char>>(input.Schema
[
Parent.BertOptions.Sentence2ColumnName]) : default;
NasBert\NerTrainer.cs (2)
216
input.Schema
[
Parent.Option.LabelColumnName].GetKeyValues(ref keys);
419
getSentence1 = input.GetGetter<ReadOnlyMemory<char>>(input.Schema
[
Parent.SentenceColumn.Name]);
NasBert\SentenceSimilarityTrainer.cs (2)
277
getSentence1 = input.GetGetter<ReadOnlyMemory<char>>(input.Schema
[
Parent.SentenceColumn.Name]);
278
getSentence2 = input.GetGetter<ReadOnlyMemory<char>>(input.Schema
[
Parent.SentenceColumn2.Name]);
NasBert\TextClassificationTrainer.cs (4)
323
getSentence1 = input.GetGetter<ReadOnlyMemory<char>>(input.Schema
[
Parent.SentenceColumn.Name]);
325
getSentence2 = input.GetGetter<ReadOnlyMemory<char>>(input.Schema
[
Parent.SentenceColumn2.Name]);
354
getSentence1 = input.GetGetter<ReadOnlyMemory<char>>(input.Schema
[
Parent.SentenceColumn.Name]);
356
getSentence2 = input.GetGetter<ReadOnlyMemory<char>>(input.Schema
[
Parent.SentenceColumn2.Name]);
Roberta\QATrainer.cs (12)
272
DataViewRowCursor cursor = input.GetRowCursor(input.Schema
[
Parent.Option.ContextColumnName], input.Schema
[
Parent.Option.QuestionColumnName], input.Schema
[
Parent.Option.TrainingAnswerColumnName], input.Schema
[
Parent.Option.AnswerIndexStartColumnName]);
274
var contextGetter = cursor.GetGetter<ReadOnlyMemory<char>>(input.Schema
[
Parent.Option.ContextColumnName]);
275
var questionGetter = cursor.GetGetter<ReadOnlyMemory<char>>(input.Schema
[
Parent.Option.QuestionColumnName]);
276
var answerGetter = cursor.GetGetter<ReadOnlyMemory<char>>(input.Schema
[
Parent.Option.TrainingAnswerColumnName]);
277
var answerIndexGetter = cursor.GetGetter<int>(input.Schema
[
Parent.Option.AnswerIndexStartColumnName]);
781
getContext = input.GetGetter<ReadOnlyMemory<char>>(input.Schema
[
_parent.Options.ContextColumnName]);
782
getQuestion = input.GetGetter<ReadOnlyMemory<char>>(input.Schema
[
_parent.Options.QuestionColumnName]);
808
getContext = input.GetGetter<ReadOnlyMemory<char>>(input.Schema
[
_parent.Options.ContextColumnName]);
809
getQuestion = input.GetGetter<ReadOnlyMemory<char>>(input.Schema
[
_parent.Options.QuestionColumnName]);
TorchSharpBaseTrainer.cs (2)
203
var labelGetter = cursor.GetGetter<TLabelCol>(validationSet.Schema
[
Parent.Option.LabelColumnName]);
275
var labelGetter = cursor.GetGetter<TLabelCol>(input.Schema
[
Parent.Option.LabelColumnName]);
Microsoft.ML.TorchSharp.Tests (14)
ObjectDetectionTests.cs (4)
84
var metrics = ML.MulticlassClassification.EvaluateObjectDetection(idv, idv.Schema[2], idv.Schema
[
"Box"], idv.Schema
[
"PredictedLabel"], idv.Schema
[
"PredictedBoundingBoxes"], idv.Schema
[
"Score"]);
QATests.cs (10)
91
using (var cursor = transformedData.GetRowCursor(transformedData.Schema
[
"Answer"], transformedData.Schema
[
"Score"], transformedData.Schema
[
"TrainingAnswer"], transformedData.Schema
[
"Context"], transformedData.Schema
[
"Question"]))
93
var answerGetter = cursor.GetGetter<VBuffer<ReadOnlyMemory<char>>>(transformedData.Schema
[
"Answer"]);
94
var contextGetter = cursor.GetGetter<ReadOnlyMemory<char>>(transformedData.Schema
[
"Context"]);
95
var questionGetter = cursor.GetGetter<ReadOnlyMemory<char>>(transformedData.Schema
[
"Question"]);
96
var trainingAnswerGetter = cursor.GetGetter<ReadOnlyMemory<char>>(transformedData.Schema
[
"TrainingAnswer"]);
97
var scoreGetter = cursor.GetGetter<VBuffer<float>>(transformedData.Schema
[
"Score"]);
Microsoft.ML.Transforms (18)
Dracula\CountTableTransformer.cs (3)
675
if (input.Schema
[
_parent.ColumnPairs[iinfo].inputColumnName].Type is VectorDataViewType)
684
var srcGetter = input.GetGetter<uint>(input.Schema
[
_parent.ColumnPairs[iinfo].inputColumnName]);
699
var inputCol = input.Schema
[
_parent.ColumnPairs[iinfo].inputColumnName];
ExpressionTransformer.cs (2)
453
inputColumns[i] = input.Schema
[
inputColumnNames[i]];
595
inputColumns[i] = input.Schema
[
inputColumnNames[i]];
GroupTransform.cs (4)
285
schemaBuilder.AddColumn(groupKeyColumnName, sourceSchema
[
groupKeyColumnName].Type, sourceSchema
[
groupKeyColumnName].Annotations);
292
metadataBuilder.Add(sourceSchema
[
groupValueColumnName].Annotations,
296
var aggregatedValueType = sourceSchema
[
groupValueColumnName].Type as PrimitiveDataViewType;
PermutationFeatureImportance.cs (1)
51
var featuresColumn = data.Schema
[
features];
PermutationFeatureImportanceExtensions.cs (1)
705
data.Schema
[
featureColumnName].Annotations.GetValue("SlotNames", ref nameBuffer);
StatefulCustomMappingTransformer.cs (1)
197
var getter = input.GetGetter<T>(input.Schema
[
colName]);
SvmLight\SvmLightLoader.cs (1)
727
var col = inputSchema
[
nameof(Indices.FeatureKeys)];
Text\StopWordsRemovingTransformer.cs (1)
874
using (var cursor = loader.GetRowCursor(loader.Schema
[
srcCol]))
Text\TextNormalizing.cs (1)
332
var srcType = input.Schema
[
_parent.ColumnPairs[iinfo].inputColumnName].Type;
Text\TokenizingByCharacters.cs (2)
208
var type = inputSchema
[
_parent.ColumnPairs[i].inputColumnName].Type;
470
if (!(input.Schema
[
_parent.ColumnPairs[iinfo].inputColumnName].Type is VectorDataViewType))
Text\WordEmbeddingsExtractor.cs (1)
338
var dstVariableName = ctx.AddIntermediateVariable(schema
[
outputColumnName].Type, outputColumnName);
Microsoft.ML.Vision (2)
ImageClassificationTrainer.cs (2)
820
var labelColumn = input.Schema
[
labelColumnName];
829
var imageColumn = input.Schema
[
imageColumnName];