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)
71
var tokensColumn = transformedData.
GetColumn
<string[]>(transformedData.Schema["FeaturizeTextTokens"]);
83
var 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)
77
var countSelectColumn = transformedData.
GetColumn
<float[]>(
Dynamic\Transforms\Categorical\OneHotHashEncoding.cs (1)
77
var countSelectColumn = transformedData.
GetColumn
<float[]>(
Dynamic\Transforms\Conversion\KeyToValueToKey.cs (1)
91
var originalColumnBack = transformedDataDefault.
GetColumn
<VBuffer<
Dynamic\Transforms\Projection\VectorWhiten.cs (1)
57
var whitening = transformedData.
GetColumn
<VBuffer<float>>(
Dynamic\Transforms\Projection\VectorWhitenWithOptions.cs (1)
57
var whitening = transformedData.
GetColumn
<VBuffer<float>>(
Dynamic\Transforms\Text\ProduceHashedNgrams.cs (1)
77
var NgramFeaturesColumn = transformedDataView.
GetColumn
<VBuffer<float>>(
Dynamic\Transforms\Text\ProduceHashedWordBags.cs (1)
78
var BagOfWordFeaturesColumn = transformedDataView.
GetColumn
<VBuffer<
Dynamic\Transforms\Text\ProduceNgrams.cs (1)
85
var NgramFeaturesColumn = transformedDataView.
GetColumn
<VBuffer<
Dynamic\Transforms\Text\ProduceWordBags.cs (1)
84
var BagOfWordFeaturesColumn = transformedDataView.
GetColumn
<VBuffer<
Microsoft.ML.Tests (51)
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();
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\TestApi.cs (10)
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());
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();
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\HashTests.cs (3)
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\ValueMappingTests.cs (1)
744
var t = result.
GetColumn
<uint>(result.Schema["Label"]);
Microsoft.ML.TorchSharp (1)
AutoFormerV2\ObjectDetectionMetrics.cs (1)
84
var labelColEnumerable = dataView.
GetColumn
<VBuffer<ReadOnlyMemory<char>>>(labelCol);