81 references to ColumnNames
Microsoft.ML.Data (81)
Evaluators\AnomalyDetectionEvaluator.cs (7)
182
overallDvBldr.AddColumn(MetricKinds.
ColumnNames
.StratCol, GetKeyValueGetter(dictionaries), (ulong)dictionaries.Length, stratCol.ToArray());
183
overallDvBldr.AddColumn(MetricKinds.
ColumnNames
.StratVal, TextDataViewType.Instance, stratVal.ToArray());
197
topKdvBldr.AddColumn(MetricKinds.
ColumnNames
.StratCol, GetKeyValueGetter(dictionaries), (ulong)dictionaries.Length, topKStratCol.ToArray());
198
topKdvBldr.AddColumn(MetricKinds.
ColumnNames
.StratVal, TextDataViewType.Instance, topKStratVal.ToArray());
721
var hasStrat = overall.Schema.TryGetColumnIndex(MetricKinds.
ColumnNames
.StratCol, out stratCol);
723
bool hasStratVals = overall.Schema.TryGetColumnIndex(MetricKinds.
ColumnNames
.StratVal, out stratVal);
727
(hasStrat && col.Name.Equals(MetricKinds.
ColumnNames
.StratCol)))))
Evaluators\BinaryClassifierEvaluator.cs (17)
337
overallDvBldr.AddColumn(MetricKinds.
ColumnNames
.StratCol, GetKeyValueGetter(dictionaries), (ulong)dictionaries.Length, stratCol.ToArray());
338
overallDvBldr.AddColumn(MetricKinds.
ColumnNames
.StratVal, TextDataViewType.Instance, stratVal.ToArray());
341
overallDvBldr.AddColumn(MetricKinds.
ColumnNames
.IsWeighted, BooleanDataViewType.Instance, isWeighted.ToArray());
358
confDvBldr.AddColumn(MetricKinds.
ColumnNames
.StratCol, GetKeyValueGetter(dictionaries), (ulong)dictionaries.Length, confStratCol.ToArray());
359
confDvBldr.AddColumn(MetricKinds.
ColumnNames
.StratVal, TextDataViewType.Instance, confStratVal.ToArray());
364
confDvBldr.AddColumn(MetricKinds.
ColumnNames
.Count, getSlotNames, NumberDataViewType.Double, counts.ToArray());
367
confDvBldr.AddColumn(MetricKinds.
ColumnNames
.Weight, getSlotNames, NumberDataViewType.Double, weights.ToArray());
378
dvBldr.AddColumn(MetricKinds.
ColumnNames
.StratCol, GetKeyValueGetter(dictionaries), (ulong)dictionaries.Length, prStratCol.ToArray());
379
dvBldr.AddColumn(MetricKinds.
ColumnNames
.StratVal, TextDataViewType.Instance, prStratVal.ToArray());
1382
if (fold.Schema.TryGetColumnIndex(MetricKinds.
ColumnNames
.IsWeighted, out index))
1383
colsToKeep.Add(MetricKinds.
ColumnNames
.IsWeighted);
1384
if (fold.Schema.TryGetColumnIndex(MetricKinds.
ColumnNames
.StratCol, out index))
1385
colsToKeep.Add(MetricKinds.
ColumnNames
.StratCol);
1386
if (fold.Schema.TryGetColumnIndex(MetricKinds.
ColumnNames
.StratVal, out index))
1387
colsToKeep.Add(MetricKinds.
ColumnNames
.StratVal);
1552
schemaBuilder.AddColumn(MetricKinds.
ColumnNames
.WarningText, TextDataViewType.Instance);
1580
schemaBuilder.AddColumn(MetricKinds.
ColumnNames
.Count, NumberDataViewType.Double);
Evaluators\ClusteringEvaluator.cs (3)
204
overallDvBldr.AddColumn(MetricKinds.
ColumnNames
.StratCol, GetKeyValueGetter(dictionaries), (ulong)dictionaries.Length, stratCol.ToArray());
205
overallDvBldr.AddColumn(MetricKinds.
ColumnNames
.StratVal, TextDataViewType.Instance, stratVal.ToArray());
208
overallDvBldr.AddColumn(MetricKinds.
ColumnNames
.IsWeighted, BooleanDataViewType.Instance, isWeighted.ToArray());
Evaluators\EvaluatorBase.cs (1)
310
dvBldr.AddColumn(MetricKinds.
ColumnNames
.WarningText, TextDataViewType.Instance,
Evaluators\EvaluatorUtils.cs (30)
261
var hasWeighted = schema.TryGetColumnIndex(MetricKinds.
ColumnNames
.IsWeighted, out isWeightedCol);
267
if (hasStrats = schema.TryGetColumnIndex(MetricKinds.
ColumnNames
.StratCol, out stratCol))
269
if (!schema.TryGetColumnIndex(MetricKinds.
ColumnNames
.StratVal, out stratVal))
272
MetricKinds.
ColumnNames
.StratCol, MetricKinds.
ColumnNames
.StratVal);
406
input, inputColName, MetricKinds.
ColumnNames
.FoldIndex, inputColType, $"Fold {curFold}", "FoldName");
448
input, inputColName, MetricKinds.
ColumnNames
.FoldIndex,
1077
overall = new KeyToValueMappingTransformer(env, MetricKinds.
ColumnNames
.StratCol).Transform(overall);
1084
var isWeightedColumn = data.Schema.GetColumnOrNull(MetricKinds.
ColumnNames
.IsWeighted);
1086
var hasStrats = data.Schema.TryGetColumnIndex(MetricKinds.
ColumnNames
.StratCol, out int scol);
1087
var hasStratVals = data.Schema.TryGetColumnIndex(MetricKinds.
ColumnNames
.StratVal, out int svalcol);
1089
var hasFoldCol = data.Schema.TryGetColumnIndex(MetricKinds.
ColumnNames
.FoldIndex, out int fcol);
1241
MetricKinds.
ColumnNames
.StratCol);
1252
dvBldr.AddColumn(MetricKinds.
ColumnNames
.StratCol, getKeyValues, type.GetKeyCount(), keys);
1253
weightedDvBldr?.AddColumn(MetricKinds.
ColumnNames
.StratCol, getKeyValues, type.GetKeyCount(), keys);
1259
dvBldr.AddColumn(MetricKinds.
ColumnNames
.StratVal, TextDataViewType.Instance, stratVals);
1260
weightedDvBldr?.AddColumn(MetricKinds.
ColumnNames
.StratVal, TextDataViewType.Instance, stratVals);
1265
dvBldr.AddColumn(MetricKinds.
ColumnNames
.IsWeighted, BooleanDataViewType.Instance, foldCol >= 0 ? new[] { false, false } : new[] { false });
1266
weightedDvBldr.AddColumn(MetricKinds.
ColumnNames
.IsWeighted, BooleanDataViewType.Instance, foldCol >= 0 ? new[] { true, true } : new[] { true });
1271
dvBldr.AddColumn(MetricKinds.
ColumnNames
.FoldIndex, TextDataViewType.Instance, foldVals);
1272
weightedDvBldr?.AddColumn(MetricKinds.
ColumnNames
.FoldIndex, TextDataViewType.Instance, foldVals);
1362
var weightColumn = confusionDataView.Schema.GetColumnOrNull(MetricKinds.
ColumnNames
.Weight);
1386
var weightColumn = confusionDataView.Schema.GetColumnOrNull(MetricKinds.
ColumnNames
.Weight);
1391
var countColumn = confusionDataView.Schema[MetricKinds.
ColumnNames
.Count];
1475
var hasStrat = confusionDataView.Schema.TryGetColumnIndex(MetricKinds.
ColumnNames
.StratCol, out stratCol);
1736
var warningTextColumn = warnings.Schema.GetColumnOrNull(MetricKinds.
ColumnNames
.WarningText);
1739
using (var cursor = warnings.GetRowCursor(warnings.Schema[MetricKinds.
ColumnNames
.WarningText]))
1773
if (!data.Schema.TryGetColumnIndex(MetricKinds.
ColumnNames
.StratCol, out stratCol))
1778
filterArgs.Columns = new[] { MetricKinds.
ColumnNames
.StratCol };
1783
var found = data.Schema.TryGetColumnIndex(MetricKinds.
ColumnNames
.StratVal, out stratVal);
Evaluators\MamlEvaluator.cs (2)
238
if (perInst.Schema.Schema.TryGetColumnIndex(MetricKinds.
ColumnNames
.FoldIndex, out foldCol))
239
colsToKeep.Add(MetricKinds.
ColumnNames
.FoldIndex);
Evaluators\MulticlassClassificationEvaluator.cs (7)
211
overallDvBldr.AddColumn(MetricKinds.
ColumnNames
.StratCol, GetKeyValueGetter(dictionaries), (ulong)dictionaries.Length, stratCol.ToArray());
212
overallDvBldr.AddColumn(MetricKinds.
ColumnNames
.StratVal, TextDataViewType.Instance, stratVal.ToArray());
215
overallDvBldr.AddColumn(MetricKinds.
ColumnNames
.IsWeighted, BooleanDataViewType.Instance, isWeighted.ToArray());
235
confDvBldr.AddColumn(MetricKinds.
ColumnNames
.StratCol, GetKeyValueGetter(dictionaries), (ulong)dictionaries.Length, confStratCol.ToArray());
236
confDvBldr.AddColumn(MetricKinds.
ColumnNames
.StratVal, TextDataViewType.Instance, confStratVal.ToArray());
241
confDvBldr.AddColumn(MetricKinds.
ColumnNames
.Count, getSlotNames, NumberDataViewType.Double, counts.ToArray());
244
confDvBldr.AddColumn(MetricKinds.
ColumnNames
.Weight, getSlotNames, NumberDataViewType.Double, weights.ToArray());
Evaluators\MultiOutputRegressionEvaluator.cs (6)
148
overallDvBldr.AddColumn(MetricKinds.
ColumnNames
.StratCol, GetKeyValueGetter(dictionaries), (ulong)dictionaries.Length, stratCol.ToArray());
149
overallDvBldr.AddColumn(MetricKinds.
ColumnNames
.StratVal, TextDataViewType.Instance, stratVal.ToArray());
152
overallDvBldr.AddColumn(MetricKinds.
ColumnNames
.IsWeighted, BooleanDataViewType.Instance, isWeighted.ToArray());
668
var isWeightedCol = fold.Schema.GetColumnOrNull(MetricKinds.
ColumnNames
.IsWeighted);
671
bool hasStrats = fold.Schema.TryGetColumnIndex(MetricKinds.
ColumnNames
.StratCol, out stratCol);
673
bool hasStratVals = fold.Schema.TryGetColumnIndex(MetricKinds.
ColumnNames
.StratVal, out stratVal);
Evaluators\RankingEvaluator.cs (5)
216
overallDvBldr.AddColumn(MetricKinds.
ColumnNames
.StratCol, GetKeyValueGetter(dictionaries), (ulong)dictionaries.Length, stratCol.ToArray());
217
overallDvBldr.AddColumn(MetricKinds.
ColumnNames
.StratVal, TextDataViewType.Instance, stratVal.ToArray());
220
overallDvBldr.AddColumn(MetricKinds.
ColumnNames
.IsWeighted, BooleanDataViewType.Instance, isWeighted.ToArray());
227
groupDvBldr.AddColumn(MetricKinds.
ColumnNames
.StratCol, GetKeyValueGetter(dictionaries), (ulong)dictionaries.Length, groupStratCol.ToArray());
228
groupDvBldr.AddColumn(MetricKinds.
ColumnNames
.StratVal, TextDataViewType.Instance, groupStratVal.ToArray());
Evaluators\RegressionEvaluatorBase.cs (3)
97
overallDvBldr.AddColumn(MetricKinds.
ColumnNames
.StratCol, GetKeyValueGetter(dictionaries), (ulong)dictionaries.Length, stratCol.ToArray());
98
overallDvBldr.AddColumn(MetricKinds.
ColumnNames
.StratVal, TextDataViewType.Instance, stratVal.ToArray());
101
overallDvBldr.AddColumn(MetricKinds.
ColumnNames
.IsWeighted, BooleanDataViewType.Instance, isWeighted.ToArray());