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