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