26 references to Kinds
Microsoft.ML.Core (22)
Data\AnnotationBuilderExtensions.cs (2)
19=> builder.Add(AnnotationUtils.Kinds.SlotNames, new VectorDataViewType(TextDataViewType.Instance, size), getter); 30=> builder.Add(AnnotationUtils.Kinds.KeyValues, new VectorDataViewType(valueType, size), getter);
Data\AnnotationUtils.cs (20)
180return GetNamesType(size).GetPair(Kinds.SlotNames); 189return GetNamesType(size).GetPair(Kinds.KeyValues); 290var metaColumn = column.Annotations.Schema.GetColumnOrNull(Kinds.SlotNames); 307schema.Schema[list[0].Index].Annotations.GetValue(Kinds.SlotNames, ref slotNames); 312return col.Annotations.TryFindColumn(Kinds.KeyValues, out var metaCol) 318/// Returns whether a column has the <see cref="Kinds.IsNormalized"/> annotation indicated by 322/// <returns>True if and only if the column has the <see cref="Kinds.IsNormalized"/> annotation 327return column.Annotations.TryFindColumn(Kinds.IsNormalized, out var metaCol) 333/// Returns whether a column has the <see cref="Kinds.SlotNames"/> annotation indicated by 338/// <see cref="Kinds.SlotNames"/> annotation of definite sized vectors of text.</returns> 343&& col.Annotations.TryFindColumn(Kinds.SlotNames, out var metaCol) 388var type = schema[colIndex].Annotations.Schema.GetColumnOrNull(Kinds.CategoricalSlotRanges)?.Type; 392schema[colIndex].Annotations.GetValue(Kinds.CategoricalSlotRanges, ref catIndices); 428cols.Add(new SchemaShape.Column(Kinds.ScoreColumnSetId, SchemaShape.Column.VectorKind.Scalar, NumberDataViewType.UInt32, true)); 429cols.Add(new SchemaShape.Column(Kinds.ScoreColumnKind, SchemaShape.Column.VectorKind.Scalar, TextDataViewType.Instance, false)); 430cols.Add(new SchemaShape.Column(Kinds.ScoreValueKind, SchemaShape.Column.VectorKind.Scalar, TextDataViewType.Instance, false)); 432cols.Add(new SchemaShape.Column(Kinds.IsNormalized, SchemaShape.Column.VectorKind.Scalar, BooleanDataViewType.Instance, false)); 446if (labelColumn.Value.Annotations.TryFindColumn(Kinds.KeyValues, out var metaCol) && 450cols.Add(new SchemaShape.Column(Kinds.SlotNames, SchemaShape.Column.VectorKind.Vector, TextDataViewType.Instance, false)); 451cols.Add(new SchemaShape.Column(Kinds.TrainingLabelValues, SchemaShape.Column.VectorKind.Vector, metaCol.ItemType, false));
Microsoft.ML.Data (3)
DataLoadSave\Text\TextLoader.cs (1)
692/// <see cref="Infos"/>[i] stores the i-th column's metadata, named <see cref="AnnotationUtils.Kinds.SlotNames"/>
Scorers\ScoreSchemaFactory.cs (2)
20/// <param name="scoreColumnKindValue">The kind of the score column. It's the value of <see cref="AnnotationUtils.Kinds.ScoreColumnKind"/> in the score column's metadata.</param> 113/// <see cref="AnnotationUtils.Kinds.ScoreColumnKind"/>.</param>
Microsoft.ML.FastTree (1)
TreeEnsemble\InternalTreeEnsemble.cs (1)
436/// <seealso cref="AnnotationUtils.Kinds.SlotNames"/>