2 instantiations of Annotations
Microsoft.ML.DataView (2)
DataViewSchema.cs (2)
185public static Annotations Empty { get; } = new Annotations(new DataViewSchema(new Column[0]), new Delegate[0]); 358return new Annotations(builder.ToSchema(), _items.Select(x => x.Getter).ToArray());
151 references to Annotations
Microsoft.ML.Core (8)
Data\AnnotationBuilderExtensions.cs (4)
15/// <param name="builder">The <see cref="DataViewSchema.Annotations.Builder"/> to which to add the slot names.</param> 18public static void AddSlotNames(this DataViewSchema.Annotations.Builder builder, int size, ValueGetter<VBuffer<ReadOnlyMemory<char>>> getter) 25/// <param name="builder">The <see cref="DataViewSchema.Annotations.Builder"/> to which to add the key values.</param> 29public static void AddKeyValues<TValue>(this DataViewSchema.Annotations.Builder builder, int size, PrimitiveDataViewType valueType, ValueGetter<VBuffer<TValue>> getter)
Data\AnnotationUtils.cs (4)
460private readonly DataViewSchema.Annotations _annotations; 462public AnnotationRow(DataViewSchema.Annotations annotations) 490/// Presents a <see cref="DataViewSchema.Annotations"/> as a an <see cref="DataViewRow"/>. 495internal static DataViewRow AnnotationsAsRow(DataViewSchema.Annotations annotations)
Microsoft.ML.Core.Tests (2)
UnitTests\ScoreSchemaTest.cs (2)
57var scoreMetadata = scoreColumn.Annotations; 114var scoreMetadata = scoreColumn.Annotations;
Microsoft.ML.Data (67)
Data\SchemaDefinition.cs (2)
277public DataViewSchema.Annotations Annotations 281var builder = new DataViewSchema.Annotations.Builder();
DataLoadSave\Binary\BinaryLoader.cs (1)
653var metadataBuilder = new DataViewSchema.Annotations.Builder();
DataLoadSave\DataOperationsCatalog.cs (1)
98/// One practical usage of this would be to supply the feature column names through the <see cref="DataViewSchema.Annotations"/>.
DataLoadSave\FakeSchema.cs (1)
30var metaBuilder = new DataViewSchema.Annotations.Builder();
DataLoadSave\Text\TextLoader.cs (2)
693/// in <see cref="DataViewSchema.Annotations"/>. 1054var metadataBuilder = new DataViewSchema.Annotations.Builder();
DataView\ArrayDataViewBuilder.cs (1)
221var meta = new DataViewSchema.Annotations.Builder();
DataView\DataViewConstructionUtils.cs (5)
22private static readonly FuncStaticMethodInfo1<string, DataViewSchema.Annotations, AnnotationInfo> _getAnnotationInfoMethodInfo 23= new FuncStaticMethodInfo1<string, DataViewSchema.Annotations, AnnotationInfo>(GetAnnotationInfo<int>); 81var annotations = col.Annotations; 102private static AnnotationInfo GetAnnotationInfo<T>(string kind, DataViewSchema.Annotations annotations) 813var meta = new DataViewSchema.Annotations.Builder();
Deprecated\Instances\HeaderSchema.cs (1)
36var metadataBuilder = new DataViewSchema.Annotations.Builder();
Evaluators\ClusteringEvaluator.cs (2)
726var sortedClusters = new DataViewSchema.Annotations.Builder(); 730var builder = new DataViewSchema.Annotations.Builder();
Evaluators\MulticlassClassificationEvaluator.cs (3)
812var assignedColKeyValues = new DataViewSchema.Annotations.Builder(); 818var sortedScores = new DataViewSchema.Annotations.Builder(); 821var sortedClasses = new DataViewSchema.Annotations.Builder();
Evaluators\MultiOutputRegressionEvaluator.cs (6)
400private readonly DataViewSchema.Annotations _labelMetadata; 401private readonly DataViewSchema.Annotations _scoreMetadata; 544out DataViewSchema.Annotations labelMetadata, out DataViewSchema.Annotations scoreMetadata) 554var builder = new DataViewSchema.Annotations.Builder(); 562builder = new DataViewSchema.Annotations.Builder();
Evaluators\QuantileRegressionEvaluator.cs (2)
356var l1Metadata = new DataViewSchema.Annotations.Builder(); 359var l2Metadata = new DataViewSchema.Annotations.Builder();
Prediction\CalibratorCatalog.cs (2)
282var builder = new DataViewSchema.Annotations.Builder(); 283var annotation = InputSchema[_scoreColIndex].Annotations;
Scorers\FeatureContributionCalculation.cs (1)
338var metadataBuilder = new DataViewSchema.Annotations.Builder();
Scorers\MulticlassClassificationScorer.cs (1)
319var meta = new DataViewSchema.Annotations.Builder();
Scorers\PredictedLabelScorerBase.cs (9)
34private static readonly FuncStaticMethodInfo1<DataViewSchema.Annotations, DataViewSchema.Column, DataViewSchema.Annotations> _keyValueMetadataFromMetadataMethodInfo 35= new FuncStaticMethodInfo1<DataViewSchema.Annotations, DataViewSchema.Column, DataViewSchema.Annotations>(KeyValueMetadataFromMetadata<int>); 46private readonly DataViewSchema.Annotations _predColMetadata; 66var scoreColMetadata = mapper.OutputSchema[scoreColIndex].Annotations; 78private static DataViewSchema.Annotations KeyValueMetadataFromMetadata<T>(DataViewSchema.Annotations meta, DataViewSchema.Column metaCol) 82var builder = new DataViewSchema.Annotations.Builder();
Scorers\ScoreSchemaFactory.cs (4)
29var metadataBuilder = new DataViewSchema.Annotations.Builder(); 61var probabilityMetadataBuilder = new DataViewSchema.Annotations.Builder(); 89var metadataBuilder = new DataViewSchema.Annotations.Builder(); 122var metadataBuilder = new DataViewSchema.Annotations.Builder();
Transforms\ColumnBindingsBase.cs (1)
280var meta = new DataViewSchema.Annotations.Builder();
Transforms\ColumnConcatenatingTransformer.cs (2)
579var metadata = new DataViewSchema.Annotations.Builder(); 648var inputMetadata = _inputSchema[colSrc].Annotations;
Transforms\FeatureContributionCalculationTransformer.cs (1)
198var builder = new DataViewSchema.Annotations.Builder();
Transforms\Hashing.cs (2)
1335var meta = new DataViewSchema.Annotations.Builder(); 1345private void AddMetaKeyValues(int i, DataViewSchema.Annotations.Builder builder)
Transforms\KeyToValue.cs (1)
176var meta = new DataViewSchema.Annotations.Builder();
Transforms\KeyToVector.cs (4)
296var builder = new DataViewSchema.Annotations.Builder(); 303private void AddMetadata(int iinfo, DataViewSchema.Annotations.Builder builder) 306var inputMetadata = InputSchema[srcCol].Annotations; 377var inputMetadata = InputSchema[_infos[iinfo].InputColumnName].Annotations;
Transforms\Normalizer.cs (2)
741private DataViewSchema.Annotations MakeMetadata(int iinfo) 744var builder = new DataViewSchema.Annotations.Builder();
Transforms\SlotsDroppingTransformer.cs (1)
834var builder = new DataViewSchema.Annotations.Builder();
Transforms\TypeConverting.cs (1)
439var builder = new DataViewSchema.Annotations.Builder();
Transforms\ValueMapping.cs (1)
366internal DataViewSchema.Annotations ValueColumnMetadata => _valueMap.ValueColumn.Annotations;
Transforms\ValueToKeyMappingTransformer.cs (1)
747var builder = new DataViewSchema.Annotations.Builder();
Transforms\ValueToKeyMappingTransformerImpl.cs (6)
860public abstract void AddMetadata(DataViewSchema.Annotations.Builder builder); 1043public override void AddMetadata(DataViewSchema.Annotations.Builder builder) 1080private static readonly FuncInstanceMethodInfo1<KeyImpl<T>, DataViewType, DataViewSchema.Annotations.Builder, bool> _addMetadataCoreMethodInfo 1081= FuncInstanceMethodInfo1<KeyImpl<T>, DataViewType, DataViewSchema.Annotations.Builder, bool>.Create(target => target.AddMetadataCore<int>); 1092public override void AddMetadata(DataViewSchema.Annotations.Builder builder) 1107private bool AddMetadataCore<TMeta>(DataViewType srcMetaType, DataViewSchema.Annotations.Builder builder)
Microsoft.ML.DataView (25)
DataViewSchema.cs (21)
103public Annotations Annotations { get; } 105internal Column(string name, int index, bool isHidden, DataViewType type, Annotations annotations) 116Annotations = annotations ?? Annotations.Empty; 143public Annotations Annotations { get; } 148public DetachedColumn(string name, DataViewType type, Annotations annotations = null) 155Annotations = annotations ?? Annotations.Empty; 185public static Annotations Empty { get; } = new Annotations(new DataViewSchema(new Column[0]), new Delegate[0]); 191/// Note: The <paramref name="getters"/> array is owned by this <see cref="Annotations"/> instance. 254/// Class containing operations to build an <see cref="Annotations"/>. 258private readonly List<(string Name, DataViewType Type, Delegate Getter, Annotations Annotations)> _items; 262_items = new List<(string Name, DataViewType Type, Delegate Getter, Annotations Annotations)>(); 271public void Add(Annotations annotations, Func<string, bool> selector) 295public void Add<TValue>(string name, DataViewType type, ValueGetter<TValue> getter, Annotations annotations = null) 318public void Add(string name, DataViewType type, Delegate getter, Annotations annotations = null) 338public void AddPrimitiveValue<TValue>(string name, PrimitiveDataViewType type, TValue value, Annotations annotations = null) 351/// Returns a <see cref="Annotations"/> row that contains the current contents of this <see cref="Builder"/>. 353public Annotations ToAnnotations() 361private void AddDelegate<TValue>(string name, DataViewType type, Delegate getter, Annotations annotations) 380private readonly List<(string Name, DataViewType Type, Annotations Annotations)> _items; 387_items = new List<(string Name, DataViewType Type, Annotations Annotations)>(); 396public void AddColumn(string name, DataViewType type, Annotations annotations = null)
SchemaDebuggerProxy.cs (4)
27/// The debugger proxy for <see cref="DataViewSchema.Annotations"/>. 34public AnnotationsDebuggerProxy(DataViewSchema.Annotations annotations) 39private static List<KeyValuePair<string, object>> BuildValues(DataViewSchema.Annotations annotations) 51private static object GetValue<T>(DataViewSchema.Annotations annotations, DataViewSchema.Column column)
Microsoft.ML.FastTree (3)
TreeEnsembleFeaturizer.cs (3)
138var treeIdMetadataBuilder = new DataViewSchema.Annotations.Builder(); 150var leafIdMetadataBuilder = new DataViewSchema.Annotations.Builder(); 163var pathIdMetadataBuilder = new DataViewSchema.Annotations.Builder();
Microsoft.ML.OnnxTransformer (2)
OnnxTransform.cs (2)
504var builder = new DataViewSchema.Annotations.Builder(); 512private void AddSlotNames(string columnName, DataViewSchema.Annotations.Builder builder)
Microsoft.ML.StandardTrainers (10)
Standard\LinearModelParameters.cs (3)
378var subBuilder = new DataViewSchema.Annotations.Builder(); 381var builder = new DataViewSchema.Annotations.Builder(); 553var meta = Statistics.MakeStatisticsMetadata(schema, in names);
Standard\LogisticRegression\MulticlassLogisticRegression.cs (1)
1121var meta = Statistics.MakeStatisticsMetadata(schema, in names);
Standard\ModelStatistics.cs (6)
181internal virtual DataViewSchema.Annotations MakeStatisticsMetadata(RoleMappedSchema schema, in VBuffer<ReadOnlyMemory<char>> names) 183var builder = new DataViewSchema.Annotations.Builder(); 557internal override DataViewSchema.Annotations MakeStatisticsMetadata(RoleMappedSchema schema, in VBuffer<ReadOnlyMemory<char>> names) 561var builder = new DataViewSchema.Annotations.Builder(); 578var subMetaBuilder = new DataViewSchema.Annotations.Builder(); 580var subMeta = subMetaBuilder.ToAnnotations();
Microsoft.ML.TensorFlow (1)
TensorflowUtils.cs (1)
62var metadataBuilder = new DataViewSchema.Annotations.Builder();
Microsoft.ML.Tests (6)
FakeSchemaTest.cs (2)
23var metadataBuilder = new DataViewSchema.Annotations.Builder(); 49var metaC = columnC.Annotations;
Transformers\HashTests.cs (3)
133var builder = new DataViewSchema.Annotations.Builder(); 165builder = new DataViewSchema.Annotations.Builder(); 196builder = new DataViewSchema.Annotations.Builder();
Transformers\ValueMappingTests.cs (1)
573var annotations = result.Schema["D"].Annotations;
Microsoft.ML.TimeSeries (2)
SequentialAnomalyDetectionTransformBase.cs (1)
333var meta = new DataViewSchema.Annotations.Builder();
SrCnnTransformBase.cs (1)
176var meta = new DataViewSchema.Annotations.Builder();
Microsoft.ML.TorchSharp (9)
AutoFormerV2\ObjectDetectionTrainer.cs (3)
703var meta = new DataViewSchema.Annotations.Builder(); 758var meta = new DataViewSchema.Annotations.Builder(); 764var labelBuilder = new DataViewSchema.Annotations.Builder();
NasBert\NasBertTrainer.cs (3)
524var meta = new DataViewSchema.Annotations.Builder(); 531var labelBuilder = new DataViewSchema.Annotations.Builder(); 545var labelBuilder = new DataViewSchema.Annotations.Builder();
NasBert\NerTrainer.cs (1)
349var meta = new DataViewSchema.Annotations.Builder();
NasBert\TextClassificationTrainer.cs (1)
285var meta = new DataViewSchema.Annotations.Builder();
Roberta\QATrainer.cs (1)
740var meta = new DataViewSchema.Annotations.Builder();
Microsoft.ML.Transforms (16)
Dracula\CountTableTransformer.cs (1)
622var builder = new DataViewSchema.Annotations.Builder();
ExpressionTransformer.cs (1)
951var builder = new DataViewSchema.Annotations.Builder();
GcnTransform.cs (1)
351var builder = new DataViewSchema.Annotations.Builder();
GroupTransform.cs (1)
291var metadataBuilder = new DataViewSchema.Annotations.Builder();
KeyToVectorMapping.cs (2)
210var builder = new DataViewSchema.Annotations.Builder(); 218private void AddMetadata(int iinfo, DataViewSchema.Annotations.Builder builder)
MissingValueDroppingTransformer.cs (1)
210var builder = new DataViewSchema.Annotations.Builder();
MissingValueIndicatorTransformer.cs (1)
210var builder = new DataViewSchema.Annotations.Builder();
MissingValueReplacing.cs (1)
615var builder = new DataViewSchema.Annotations.Builder();
Text\NgramHashingTransformer.cs (2)
610var builder = new DataViewSchema.Annotations.Builder(); 617private void AddMetadata(int i, DataViewSchema.Annotations.Builder builder)
Text\NgramTransform.cs (2)
502var builder = new DataViewSchema.Annotations.Builder(); 510private void AddMetadata(int iinfo, DataViewSchema.Annotations.Builder builder)
Text\TokenizingByCharacters.cs (2)
276var builder = new DataViewSchema.Annotations.Builder(); 283private void AddMetadata(int iinfo, DataViewSchema.Annotations.Builder builder)
UngroupTransform.cs (1)
303var metadataBuilder = new DataViewSchema.Annotations.Builder();