26 references to IsNormalized
Microsoft.ML.Core (4)
Data\AnnotationUtils.cs (4)
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
327
return column.Annotations.TryFindColumn(Kinds.
IsNormalized
, out var metaCol)
432
cols.Add(new SchemaShape.Column(Kinds.
IsNormalized
, SchemaShape.Column.VectorKind.Scalar, BooleanDataViewType.Instance, false));
Microsoft.ML.Tests (22)
TrainerEstimators\TreeEnsembleFeaturizerTest.cs (2)
87
treeLeafIdsColumn.Annotations.GetValue(AnnotationUtils.Kinds.
IsNormalized
, ref leafIdsNormalizedFlag);
110
treePathIdsColumn.Annotations.GetValue(AnnotationUtils.Kinds.
IsNormalized
, ref pathIdsNormalizedFlag);
Transformers\CategoricalHashTests.cs (5)
149
Assert.Equal(column.Annotations.Schema.Select(x => x.Name), new string[2] { AnnotationUtils.Kinds.SlotNames, AnnotationUtils.Kinds.
IsNormalized
});
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
});
208
Assert.Equal(column.Annotations.Schema.Select(x => x.Name), new string[2] { AnnotationUtils.Kinds.SlotNames, AnnotationUtils.Kinds.
IsNormalized
});
Transformers\CategoricalTests.cs (6)
227
Assert.Equal(column.Annotations.Schema.Select(x => x.Name), new string[2] { AnnotationUtils.Kinds.SlotNames, AnnotationUtils.Kinds.
IsNormalized
});
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
});
285
Assert.Equal(column.Annotations.Schema.Select(x => x.Name), new string[2] { AnnotationUtils.Kinds.SlotNames, AnnotationUtils.Kinds.
IsNormalized
});
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)
123
Assert.Equal(column.Annotations.Schema.Select(x => x.Name), new string[2] { AnnotationUtils.Kinds.SlotNames, AnnotationUtils.Kinds.
IsNormalized
});
133
Assert.Equal(AnnotationUtils.Kinds.
IsNormalized
, column.Annotations.Schema.Single().Name);
Transformers\KeyToVectorEstimatorTests.cs (6)
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
});
169
Assert.Equal(column.Annotations.Schema.Select(x => x.Name), new string[2] { AnnotationUtils.Kinds.CategoricalSlotRanges, AnnotationUtils.Kinds.
IsNormalized
});
176
Assert.Equal(column.Annotations.Schema.Select(x => x.Name), new string[1] { AnnotationUtils.Kinds.
IsNormalized
});
186
Assert.Equal(column.Annotations.Schema.Select(x => x.Name), new string[3] { AnnotationUtils.Kinds.SlotNames, AnnotationUtils.Kinds.CategoricalSlotRanges, AnnotationUtils.Kinds.
IsNormalized
});