44 references to SlotNames
Microsoft.ML.Core (8)
Data\AnnotationBuilderExtensions.cs (1)
19
=> builder.Add(AnnotationUtils.Kinds.
SlotNames
, new VectorDataViewType(TextDataViewType.Instance, size), getter);
Data\AnnotationUtils.cs (7)
180
return GetNamesType(size).GetPair(Kinds.
SlotNames
);
290
var metaColumn = column.Annotations.Schema.GetColumnOrNull(Kinds.
SlotNames
);
307
schema.Schema[list[0].Index].Annotations.GetValue(Kinds.
SlotNames
, ref slotNames);
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)
450
cols.Add(new SchemaShape.Column(Kinds.
SlotNames
, SchemaShape.Column.VectorKind.Vector, TextDataViewType.Instance, false));
Microsoft.ML.Core.Tests (1)
UnitTests\TestEntryPoints.cs (1)
5406
var type = schema["Count"].Annotations.Schema[AnnotationUtils.Kinds.
SlotNames
].Type;
Microsoft.ML.Data (1)
DataLoadSave\Text\TextLoader.cs (1)
692
/// <see cref="Infos"/>[i] stores the i-th column's metadata, named <see cref="AnnotationUtils.Kinds.
SlotNames
"/>
Microsoft.ML.FastTree (1)
TreeEnsemble\InternalTreeEnsemble.cs (1)
436
/// <seealso cref="AnnotationUtils.Kinds.
SlotNames
"/>
Microsoft.ML.Tests (33)
Scenarios\Api\Estimators\PredictAndMetadata.cs (2)
92
Assert.NotNull(scoredData.Schema["Score"].Annotations.Schema.GetColumnOrNull(AnnotationUtils.Kinds.
SlotNames
));
126
Assert.Null(scoredData2.Schema["Score"].Annotations.Schema.GetColumnOrNull(AnnotationUtils.Kinds.
SlotNames
));
SvmLightTests.cs (1)
162
AnnotationUtils.Kinds.
SlotNames
, new VBuffer<ReadOnlyMemory<char>>(3, new[] { "aurora".AsMemory(), "beachwood".AsMemory(), "chagrin".AsMemory() }),
TrainerEstimators\TreeEnsembleFeaturizerTest.cs (3)
68
treeValuesColumn.Annotations.GetValue(AnnotationUtils.Kinds.
SlotNames
, ref slotNames);
91
treeLeafIdsColumn.Annotations.GetValue(AnnotationUtils.Kinds.
SlotNames
, ref leafIdsSlotNames);
114
treePathIdsColumn.Annotations.GetValue(AnnotationUtils.Kinds.
SlotNames
, ref pathIdsSlotNames);
Transformers\CategoricalHashTests.cs (8)
143
Assert.Equal(column.Annotations.Schema.Select(x => x.Name), new string[1] { AnnotationUtils.Kinds.
SlotNames
});
149
Assert.Equal(column.Annotations.Schema.Select(x => x.Name), new string[2] { AnnotationUtils.Kinds.
SlotNames
, AnnotationUtils.Kinds.IsNormalized });
156
Assert.Equal(column.Annotations.Schema.Select(x => x.Name), new string[1] { AnnotationUtils.Kinds.
SlotNames
});
162
Assert.Equal(column.Annotations.Schema.Select(x => x.Name), new string[2] { AnnotationUtils.Kinds.
SlotNames
, AnnotationUtils.Kinds.IsNormalized });
169
Assert.Equal(column.Annotations.Schema.Select(x => x.Name), new string[3] { AnnotationUtils.Kinds.
SlotNames
, AnnotationUtils.Kinds.CategoricalSlotRanges, AnnotationUtils.Kinds.IsNormalized });
181
Assert.Equal(column.Annotations.Schema.Select(x => x.Name), new string[3] { AnnotationUtils.Kinds.
SlotNames
, AnnotationUtils.Kinds.CategoricalSlotRanges, AnnotationUtils.Kinds.IsNormalized });
203
Assert.Equal(column.Annotations.Schema.Select(x => x.Name), new string[1] { AnnotationUtils.Kinds.
SlotNames
});
208
Assert.Equal(column.Annotations.Schema.Select(x => x.Name), new string[2] { AnnotationUtils.Kinds.
SlotNames
, AnnotationUtils.Kinds.IsNormalized });
Transformers\CategoricalTests.cs (10)
221
Assert.Equal(column.Annotations.Schema.Select(x => x.Name), new string[1] { AnnotationUtils.Kinds.
SlotNames
});
227
Assert.Equal(column.Annotations.Schema.Select(x => x.Name), new string[2] { AnnotationUtils.Kinds.
SlotNames
, AnnotationUtils.Kinds.IsNormalized });
234
Assert.Equal(column.Annotations.Schema.Select(x => x.Name), new string[1] { AnnotationUtils.Kinds.
SlotNames
});
240
Assert.Equal(column.Annotations.Schema.Select(x => x.Name), new string[2] { AnnotationUtils.Kinds.
SlotNames
, AnnotationUtils.Kinds.IsNormalized });
247
Assert.Equal(column.Annotations.Schema.Select(x => x.Name), new string[3] { AnnotationUtils.Kinds.
SlotNames
, AnnotationUtils.Kinds.CategoricalSlotRanges, AnnotationUtils.Kinds.IsNormalized });
257
Assert.Equal(column.Annotations.Schema.Select(x => x.Name), new string[3] { AnnotationUtils.Kinds.
SlotNames
, AnnotationUtils.Kinds.CategoricalSlotRanges, AnnotationUtils.Kinds.IsNormalized });
279
Assert.Equal(column.Annotations.Schema.Select(x => x.Name), new string[1] { AnnotationUtils.Kinds.
SlotNames
});
285
Assert.Equal(column.Annotations.Schema.Select(x => x.Name), new string[2] { AnnotationUtils.Kinds.
SlotNames
, AnnotationUtils.Kinds.IsNormalized });
292
Assert.Equal(column.Annotations.Schema.Select(x => x.Name), new string[1] { AnnotationUtils.Kinds.
SlotNames
});
298
Assert.Equal(column.Annotations.Schema.Select(x => x.Name), new string[2] { AnnotationUtils.Kinds.
SlotNames
, AnnotationUtils.Kinds.IsNormalized });
Transformers\ConvertTests.cs (1)
352
Assert.Equal(result.Schema["ConvA"].Annotations.Schema.Select(x => x.Name), new string[2] { AnnotationUtils.Kinds.
SlotNames
, AnnotationUtils.Kinds.IsNormalized });
Transformers\KeyToBinaryVectorEstimatorTest.cs (2)
117
Assert.Equal(column.Annotations.Schema.Select(x => x.Name), new string[1] { AnnotationUtils.Kinds.
SlotNames
});
123
Assert.Equal(column.Annotations.Schema.Select(x => x.Name), new string[2] { AnnotationUtils.Kinds.
SlotNames
, AnnotationUtils.Kinds.IsNormalized });
Transformers\KeyToVectorEstimatorTests.cs (6)
136
Assert.Equal(column.Annotations.Schema.Select(x => x.Name), new string[1] { AnnotationUtils.Kinds.
SlotNames
});
142
Assert.Equal(column.Annotations.Schema.Select(x => x.Name), new string[3] { AnnotationUtils.Kinds.
SlotNames
, AnnotationUtils.Kinds.CategoricalSlotRanges, AnnotationUtils.Kinds.IsNormalized });
152
Assert.Equal(column.Annotations.Schema.Select(x => x.Name), new string[3] { AnnotationUtils.Kinds.
SlotNames
, AnnotationUtils.Kinds.CategoricalSlotRanges, AnnotationUtils.Kinds.IsNormalized });
162
Assert.Equal(column.Annotations.Schema.Select(x => x.Name), new string[2] { AnnotationUtils.Kinds.
SlotNames
, AnnotationUtils.Kinds.IsNormalized });
180
Assert.Equal(column.Annotations.Schema.Select(x => x.Name), new string[1] { AnnotationUtils.Kinds.
SlotNames
});
186
Assert.Equal(column.Annotations.Schema.Select(x => x.Name), new string[3] { AnnotationUtils.Kinds.
SlotNames
, AnnotationUtils.Kinds.CategoricalSlotRanges, AnnotationUtils.Kinds.IsNormalized });