18 references to CategoricalSlotRanges
Microsoft.ML.Core (2)
Data\AnnotationUtils.cs (2)
388
var type = schema[colIndex].Annotations.Schema.GetColumnOrNull(Kinds.
CategoricalSlotRanges
)?.Type;
392
schema[colIndex].Annotations.GetValue(Kinds.
CategoricalSlotRanges
, ref catIndices);
Microsoft.ML.Tests (16)
Transformers\CategoricalHashTests.cs (4)
169
Assert.Equal(column.Annotations.Schema.Select(x => x.Name), new string[3] { AnnotationUtils.Kinds.SlotNames, AnnotationUtils.Kinds.
CategoricalSlotRanges
, AnnotationUtils.Kinds.IsNormalized });
175
column.Annotations.GetValue(AnnotationUtils.Kinds.
CategoricalSlotRanges
, ref slotRanges);
181
Assert.Equal(column.Annotations.Schema.Select(x => x.Name), new string[3] { AnnotationUtils.Kinds.SlotNames, AnnotationUtils.Kinds.
CategoricalSlotRanges
, AnnotationUtils.Kinds.IsNormalized });
185
column.Annotations.GetValue(AnnotationUtils.Kinds.
CategoricalSlotRanges
, ref slotRanges);
Transformers\CategoricalTests.cs (4)
247
Assert.Equal(column.Annotations.Schema.Select(x => x.Name), new string[3] { AnnotationUtils.Kinds.SlotNames, AnnotationUtils.Kinds.
CategoricalSlotRanges
, AnnotationUtils.Kinds.IsNormalized });
251
column.Annotations.GetValue(AnnotationUtils.Kinds.
CategoricalSlotRanges
, ref slotRanges);
257
Assert.Equal(column.Annotations.Schema.Select(x => x.Name), new string[3] { AnnotationUtils.Kinds.SlotNames, AnnotationUtils.Kinds.
CategoricalSlotRanges
, AnnotationUtils.Kinds.IsNormalized });
261
column.Annotations.GetValue(AnnotationUtils.Kinds.
CategoricalSlotRanges
, ref slotRanges);
Transformers\KeyToVectorEstimatorTests.cs (8)
142
Assert.Equal(column.Annotations.Schema.Select(x => x.Name), new string[3] { AnnotationUtils.Kinds.SlotNames, AnnotationUtils.Kinds.
CategoricalSlotRanges
, AnnotationUtils.Kinds.IsNormalized });
146
column.Annotations.GetValue(AnnotationUtils.Kinds.
CategoricalSlotRanges
, ref slotRanges);
152
Assert.Equal(column.Annotations.Schema.Select(x => x.Name), new string[3] { AnnotationUtils.Kinds.SlotNames, AnnotationUtils.Kinds.
CategoricalSlotRanges
, AnnotationUtils.Kinds.IsNormalized });
156
column.Annotations.GetValue(AnnotationUtils.Kinds.
CategoricalSlotRanges
, ref slotRanges);
169
Assert.Equal(column.Annotations.Schema.Select(x => x.Name), new string[2] { AnnotationUtils.Kinds.
CategoricalSlotRanges
, AnnotationUtils.Kinds.IsNormalized });
170
column.Annotations.GetValue(AnnotationUtils.Kinds.
CategoricalSlotRanges
, ref slotRanges);
186
Assert.Equal(column.Annotations.Schema.Select(x => x.Name), new string[3] { AnnotationUtils.Kinds.SlotNames, AnnotationUtils.Kinds.
CategoricalSlotRanges
, AnnotationUtils.Kinds.IsNormalized });
190
column.Annotations.GetValue(AnnotationUtils.Kinds.
CategoricalSlotRanges
, ref slotRanges);