1 write to Annotations
Microsoft.ML.Core (1)
Data\IEstimator.cs (1)
74
Annotations
= annotations ?? _empty;
47 references to Annotations
Microsoft.ML.Core (8)
Data\AnnotationUtils.cs (4)
312
return col.
Annotations
.TryFindColumn(Kinds.KeyValues, out var metaCol)
327
return column.
Annotations
.TryFindColumn(Kinds.IsNormalized, out var metaCol)
343
&& col.
Annotations
.TryFindColumn(Kinds.SlotNames, out var metaCol)
446
if (labelColumn.Value.
Annotations
.TryFindColumn(Kinds.KeyValues, out var metaCol) &&
Data\IEstimator.cs (4)
83
/// - The columns of <see cref="
Annotations
"/> of <paramref name="source"/> is a superset of our <see cref="
Annotations
"/> columns.
98
foreach (var annotationCol in
Annotations
)
100
if (!source.
Annotations
.TryFindColumn(annotationCol.Name, out var inputAnnotationCol))
Microsoft.ML.Data (18)
DataLoadSave\FakeSchema.cs (1)
31
var partialAnnotations = shape[i].
Annotations
;
Prediction\CalibratorCatalog.cs (3)
111
if (inputScoreCol.
Annotations
.TryFindColumn(AnnotationUtils.Kinds.ScoreColumnSetId, out var setIdCol) &&
113
inputScoreCol.
Annotations
.TryFindColumn(AnnotationUtils.Kinds.ScoreColumnKind, out var kindCol) &&
115
inputScoreCol.
Annotations
.TryFindColumn(AnnotationUtils.Kinds.ScoreValueKind, out var valueKindCol) &&
Transforms\ColumnConcatenatingEstimator.cs (1)
78
if (!col.
Annotations
.TryFindColumn(AnnotationUtils.Kinds.CategoricalSlotRanges, out var mcol))
Transforms\ColumnCopying.cs (1)
81
var col = new SchemaShape.Column(outputColumnName, originalColumn.Kind, originalColumn.ItemType, originalColumn.IsKey, originalColumn.
Annotations
);
Transforms\FeatureContributionCalculationTransformer.cs (1)
353
if (col.
Annotations
.TryFindColumn(AnnotationUtils.Kinds.SlotNames, out var slotMeta))
Transforms\Hashing.cs (1)
1964
if (!colInfo.Combine && col.
Annotations
.TryFindColumn(AnnotationUtils.Kinds.SlotNames, out var slotMeta))
Transforms\KeyToValue.cs (2)
645
if (!col.
Annotations
.TryFindColumn(AnnotationUtils.Kinds.KeyValues, out var keyMetaCol))
649
if (col.HasSlotNames() && col.
Annotations
.TryFindColumn(AnnotationUtils.Kinds.SlotNames, out var slotCol))
Transforms\KeyToVector.cs (1)
830
if (col.
Annotations
.TryFindColumn(AnnotationUtils.Kinds.KeyValues, out var keyMeta))
Transforms\Normalizer.cs (1)
362
if (col.
Annotations
.TryFindColumn(AnnotationUtils.Kinds.SlotNames, out var slotMeta))
Transforms\TypeConverting.cs (4)
637
if (col.
Annotations
.TryFindColumn(AnnotationUtils.Kinds.SlotNames, out var slotMeta))
640
if (col.
Annotations
.TryFindColumn(AnnotationUtils.Kinds.KeyValues, out var keyMeta))
643
if (col.
Annotations
.TryFindColumn(AnnotationUtils.Kinds.IsNormalized, out var normMeta))
646
result[colInfo.Name] = new SchemaShape.Column(colInfo.Name, col.Kind, newType, false, col.
Annotations
);
Transforms\ValueToKeyMappingEstimator.cs (2)
193
if (!col.IsKey || !col.
Annotations
.TryFindColumn(AnnotationUtils.Kinds.KeyValues, out var kv) || kv.Kind != SchemaShape.Column.VectorKind.Vector)
200
if (col.
Annotations
.TryFindColumn(AnnotationUtils.Kinds.SlotNames, out var slotMeta))
Microsoft.ML.ImageAnalytics (1)
ImageGrayscale.cs (1)
257
result[colInfo.outputColumnName] = new SchemaShape.Column(colInfo.outputColumnName, col.Kind, col.ItemType, col.IsKey, col.
Annotations
);
Microsoft.ML.LightGbm (1)
LightGbmMulticlassTrainer.cs (1)
367
var metadata = LightGbmTrainerOptions.LightGbmModel == null ? new SchemaShape(labelCol.
Annotations
.Where(x => x.Name == AnnotationUtils.Kinds.KeyValues).Concat(AnnotationUtils.GetTrainerOutputAnnotation())) : new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation());
Microsoft.ML.StandardTrainers (4)
Standard\LogisticRegression\MulticlassLogisticRegression.cs (1)
374
var metadata = new SchemaShape(labelCol.
Annotations
.Where(x => x.Name == AnnotationUtils.Kinds.KeyValues)
Standard\MulticlassClassification\MetaMulticlassTrainer.cs (1)
172
inputLabelCol.
Annotations
.Where(x => x.Name == AnnotationUtils.Kinds.KeyValues));
Standard\MulticlassClassification\MulticlassNaiveBayesTrainer.cs (1)
119
var predLabelMetadata = new SchemaShape(labelCol.
Annotations
.Where(x => x.Name == AnnotationUtils.Kinds.KeyValues)
Standard\SdcaMulticlass.cs (1)
164
var metadata = new SchemaShape(labelCol.
Annotations
.Where(x => x.Name == AnnotationUtils.Kinds.KeyValues)
Microsoft.ML.Transforms (15)
CountFeatureSelection.cs (3)
177
if (col.
Annotations
.TryFindColumn(AnnotationUtils.Kinds.SlotNames, out var slotMeta))
179
if (col.
Annotations
.TryFindColumn(AnnotationUtils.Kinds.CategoricalSlotRanges, out var categoricalSlotMeta))
181
if (col.IsNormalized() && col.
Annotations
.TryFindColumn(AnnotationUtils.Kinds.IsNormalized, out var isNormalizedAnnotation))
Dracula\CountTableTransformer.cs (1)
342
else if (col.
Annotations
.TryFindColumn(AnnotationUtils.Kinds.SlotNames, out var slotMeta))
ExpressionTransformer.cs (1)
200
var b = vectorCol.
Annotations
.TryFindColumn(AnnotationUtils.Kinds.SlotNames, out var slotNames);
GcnTransform.cs (1)
921
if (col.
Annotations
.TryFindColumn(AnnotationUtils.Kinds.SlotNames, out var slotMeta))
KeyToVectorMapping.cs (1)
479
if (col.
Annotations
.TryFindColumn(AnnotationUtils.Kinds.KeyValues, out var keyMeta))
MissingValueDroppingTransformer.cs (1)
51
var col = new SchemaShape.Column(outputColumnName, SchemaShape.Column.VectorKind.VariableVector, originalColumn.ItemType, originalColumn.IsKey, originalColumn.
Annotations
);
MissingValueIndicatorTransformer.cs (1)
543
if (col.
Annotations
.TryFindColumn(AnnotationUtils.Kinds.SlotNames, out var slotMeta))
MissingValueReplacing.cs (2)
1046
if (col.
Annotations
.TryFindColumn(AnnotationUtils.Kinds.SlotNames, out var slotMeta))
1048
if (col.
Annotations
.TryFindColumn(AnnotationUtils.Kinds.IsNormalized, out var normalized))
MutualInformationFeatureSelection.cs (3)
244
if (col.
Annotations
.TryFindColumn(AnnotationUtils.Kinds.SlotNames, out var slotMeta))
246
if (col.
Annotations
.TryFindColumn(AnnotationUtils.Kinds.CategoricalSlotRanges, out var categoricalSlotMeta))
248
if (col.IsNormalized() && col.
Annotations
.TryFindColumn(AnnotationUtils.Kinds.IsNormalized, out var isNormalizedAnnotation))
Text\TokenizingByCharacters.cs (1)
693
if (col.
Annotations
.TryFindColumn(AnnotationUtils.Kinds.SlotNames, out var slotMeta))