73 references to GetColumn
Microsoft.Data.Analysis.Tests (1)
DataFrameIDataViewTests.cs (1)
366var nameDataViewColumn = data.GetColumn<T>(columnName);
Microsoft.ML.Fairlearn (14)
AutoML\AutoMLExperimentExtension.cs (2)
64var sensitiveFeature = DataFrameColumn.Create("group_id", trainData.GetColumn<string>(sensitiveColumnName)); 65var label = DataFrameColumn.Create("label", trainData.GetColumn<bool>(labelColumn));
Metrics\FairlearnMetricCatalog.cs (5)
64return _eval.GetColumn<string>(sensitiveCol.Name); 71return data.GetColumn<string>(sensitiveCol.Name); 78var truths = _eval.GetColumn<bool>(_labelColumn).ToArray(); 79var predicted = _eval.GetColumn<bool>(_predictedColumn).ToArray(); 80var scores = _eval.GetColumn<float>(_scoreColumn).ToArray();
Reductions\GridSearchTrialRunner.cs (5)
76_moment.LoadData(trainDataset, DataFrameColumn.Create("y", trainDataset.GetColumn<bool>(this._labelColumn)), DataFrameColumn.Create("group_id", trainDataset.GetColumn<string>(this._sensitiveColumn))); 83var predictedLabel = eval.GetColumn<bool>("PredictedLabel").Select(b => b ? 1f : 0f).ToArray(); 86_moment.LoadData(validateDataset, DataFrameColumn.Create("y", eval.GetColumn<bool>(this._labelColumn)), DataFrameColumn.Create("group_id", validateDataset.GetColumn<string>(this._sensitiveColumn)));
Reductions\Moment.cs (2)
56var sensitiveFeature = DataFrameColumn.Create("group_id", trainData.GetColumn<string>(sensitiveColumnName)); 57var labelColumn = DataFrameColumn.Create("label", trainData.GetColumn<bool>(label));
Microsoft.ML.PerformanceTests (1)
ShuffleRowsBench.cs (1)
36foreach (string sample in shuffledData.GetColumn<string>("Sample"))
Microsoft.ML.Samples (24)
Dynamic\Transforms\ApproximatedKernelMap.cs (1)
41var column = transformedData.GetColumn<float[]>("Features").ToArray();
Dynamic\Transforms\Categorical\OneHotEncoding.cs (1)
56oneHotEncodedData.GetColumn<uint>("EducationOneHotEncoded");
Dynamic\Transforms\Categorical\OneHotHashEncoding.cs (1)
56hashKeyEncodedData.GetColumn<uint>("EducationOneHotHashEncoded");
Dynamic\Transforms\ImageAnalytics\DnnFeaturizeImage.cs (1)
58var FeaturizedImageColumnsPerRow = transformedData.GetColumn<float[]>(
Dynamic\Transforms\NormalizeBinning.cs (2)
49var column = transformedData.GetColumn<float[]>("Features").ToArray(); 59var columnFixZero = fixZeroData.GetColumn<float[]>("Features")
Dynamic\Transforms\NormalizeBinningMulticolumn.cs (2)
48var column = transformedData.GetColumn<float[]>("Features").ToArray(); 49var column2 = transformedData.GetColumn<float>("Features2").ToArray();
Dynamic\Transforms\NormalizeGlobalContrast.cs (1)
36var column = transformedData.GetColumn<float[]>("Features").ToArray();
Dynamic\Transforms\NormalizeLogMeanVariance.cs (2)
47var column = transformedData.GetColumn<float[]>("Features").ToArray(); 57var columnFixZero = noCdfData.GetColumn<float[]>("Features").ToArray();
Dynamic\Transforms\NormalizeLogMeanVarianceFixZero.cs (2)
40var column = transformedData.GetColumn<float[]>("Features").ToArray(); 49var columnFixZero = noCdfData.GetColumn<float[]>("Features").ToArray();
Dynamic\Transforms\NormalizeLpNorm.cs (1)
37var column = transformedData.GetColumn<float[]>("Features").ToArray();
Dynamic\Transforms\NormalizeMeanVariance.cs (2)
46var column = transformedData.GetColumn<float[]>("Features").ToArray(); 57var columnFixZero = noCdfData.GetColumn<float[]>("Features").ToArray();
Dynamic\Transforms\NormalizeMinMax.cs (2)
45var column = transformedData.GetColumn<float[]>("Features").ToArray(); 55var columnFixZero = fixZeroData.GetColumn<float[]>("Features")
Dynamic\Transforms\NormalizeMinMaxMulticolumn.cs (4)
69var column = transformedData.GetColumn<float[]>("Features").ToArray(); 70var column2 = transformedData.GetColumn<float[]>("Features2").ToArray(); 84var columnFixZero = fixZeroData.GetColumn<float[]>("Features").ToArray(); 85var column2FixZero = fixZeroData.GetColumn<float[]>("Features2").ToArray();
Dynamic\Transforms\NormalizeSupervisedBinning.cs (2)
63var column = transformedData.GetColumn<float[]>("Features").ToArray(); 74var columnFixZero = fixZeroData.GetColumn<float[]>("Features")
Microsoft.ML.Tests (23)
DatabaseLoaderTests.cs (1)
261var datetimes = data.GetColumn<DateTime>("datetime").ToArray();
Scenarios\GetColumnTests.cs (10)
78var enum1 = data.GetColumn<float>("floatScalar").ToArray(); 79var enum2 = data.GetColumn<float[]>("floatVector").ToArray(); 80var enum3 = data.GetColumn<VBuffer<float>>("floatVector").ToArray(); 82var enum4 = data.GetColumn<string>("stringScalar").ToArray(); 83var enum5 = data.GetColumn<string[]>("stringVector").ToArray(); 86mustFail(() => data.GetColumn<float[]>("floatScalar")); 87mustFail(() => data.GetColumn<int[]>("floatVector")); 88mustFail(() => data.GetColumn<int>("floatScalar")); 89mustFail(() => data.GetColumn<int?>("floatScalar")); 90mustFail(() => data.GetColumn<string>("floatScalar"));
TrainerEstimators\TreeEnsembleFeaturizerTest.cs (12)
156var features = transformed.GetColumn<float[]>("Features").ToArray(); 157var leafValues = transformed.GetColumn<float[]>(treesColumnName).ToArray(); 158var leafIds = transformed.GetColumn<float[]>(leavesColumnName).ToArray(); 159var paths = transformed.GetColumn<float[]>(pathsColumnName).ToArray(); 207var features = transformed.GetColumn<float[]>("Features").ToArray(); 208var leafValues = transformed.GetColumn<float[]>(treesColumnName).ToArray(); 209var leafIds = transformed.GetColumn<float[]>(leavesColumnName).ToArray(); 210var paths = transformed.GetColumn<float[]>(pathsColumnName).ToArray(); 271var features = transformed.GetColumn<float[]>(featureColumnName).ToArray(); 272var leafValues = transformed.GetColumn<float[]>(treesColumnName).ToArray(); 273var leafIds = transformed.GetColumn<float[]>(leavesColumnName).ToArray(); 274var paths = transformed.GetColumn<float[]>(pathsColumnName).ToArray();
Microsoft.ML.TorchSharp (5)
AutoFormerV2\ObjectDetectionTrainer.cs (1)
245var labelCol = input.GetColumn<VBuffer<uint>>(Parent.Option.LabelColumnName);
NasBert\NerTrainer.cs (1)
217var labelCol = input.GetColumn<VBuffer<uint>>(Parent.Option.LabelColumnName);
NasBert\SentenceSimilarityTrainer.cs (1)
148var labelCol = input.GetColumn<float>(Parent.Option.LabelColumnName);
NasBert\TextClassificationTrainer.cs (1)
150var labelCol = input.GetColumn<uint>(Parent.Option.LabelColumnName);
Roberta\QATrainer.cs (1)
232var labelCol = input.GetColumn<int>(Parent.Option.AnswerIndexStartColumnName);
Microsoft.ML.TorchSharp.Tests (5)
TextClassificationTests.cs (5)
153var predictedLabel = filteredModel.Transform(dataNoLabel).GetColumn<ReadOnlyMemory<char>>(transformerSchema[3].Name); 337var predictedLabel = transformer.Transform(preppedData).GetColumn<ReadOnlyMemory<char>>(transformerSchema[5].Name); 403var score = transformer.Transform(dataView).GetColumn<float>(transformerSchema[3].Name); 446var predictions = transformedData.GetColumn<float>("relevance").ToArray().Select(num => (double)num).ToArray(); 447var targets = transformedData.GetColumn<float>("Score").ToArray().Select(num => (double)num).ToArray();