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