68 references to GetColumn
Microsoft.ML.Data (1)
Utilities\ColumnCursor.cs (1)
26=> GetColumn<T>(data, data.Schema[columnName]);
Microsoft.ML.IntegrationTests (2)
Debugging.cs (2)
71var tokensColumn = transformedData.GetColumn<string[]>(transformedData.Schema["FeaturizeTextTokens"]); 83var featuresColumn = transformedData.GetColumn<float[]>(transformedData.Schema["Features"]);
Microsoft.ML.Samples (13)
Dynamic\NgramExtraction.cs (2)
92.GetColumn<VBuffer<float>>(transformedData_onechars 103.GetColumn<VBuffer<float>>(transformedData_twochars
Dynamic\TextTransform.cs (2)
98.GetColumn<VBuffer<float>>(transformedData_default 112.GetColumn<VBuffer<float>>(transformedData_customized
Dynamic\Transforms\Categorical\OneHotEncoding.cs (1)
77var countSelectColumn = transformedData.GetColumn<float[]>(
Dynamic\Transforms\Categorical\OneHotHashEncoding.cs (1)
77var countSelectColumn = transformedData.GetColumn<float[]>(
Dynamic\Transforms\Conversion\KeyToValueToKey.cs (1)
91var originalColumnBack = transformedDataDefault.GetColumn<VBuffer<
Dynamic\Transforms\Projection\VectorWhiten.cs (1)
57var whitening = transformedData.GetColumn<VBuffer<float>>(
Dynamic\Transforms\Projection\VectorWhitenWithOptions.cs (1)
57var whitening = transformedData.GetColumn<VBuffer<float>>(
Dynamic\Transforms\Text\ProduceHashedNgrams.cs (1)
77var NgramFeaturesColumn = transformedDataView.GetColumn<VBuffer<float>>(
Dynamic\Transforms\Text\ProduceHashedWordBags.cs (1)
78var BagOfWordFeaturesColumn = transformedDataView.GetColumn<VBuffer<
Dynamic\Transforms\Text\ProduceNgrams.cs (1)
85var NgramFeaturesColumn = transformedDataView.GetColumn<VBuffer<
Dynamic\Transforms\Text\ProduceWordBags.cs (1)
84var BagOfWordFeaturesColumn = transformedDataView.GetColumn<VBuffer<
Microsoft.ML.Tests (51)
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();
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\TestApi.cs (10)
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());
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();
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\HashTests.cs (3)
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\ValueMappingTests.cs (1)
744var t = result.GetColumn<uint>(result.Schema["Label"]);
Microsoft.ML.TorchSharp (1)
AutoFormerV2\ObjectDetectionMetrics.cs (1)
84var labelColEnumerable = dataView.GetColumn<VBuffer<ReadOnlyMemory<char>>>(labelCol);