61 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.Data (19)
Data\SchemaAnnotationsExtensions.cs (2)
82
var metaColumn = column.Annotations.Schema.GetColumnOrNull((AnnotationUtils.Kinds.
IsNormalized
));
87
column.Annotations.GetValue(AnnotationUtils.Kinds.
IsNormalized
, ref value);
Prediction\CalibratorCatalog.cs (2)
108
annotations.Add(new SchemaShape.Column(AnnotationUtils.Kinds.
IsNormalized
,
305
builder.Add(AnnotationUtils.Kinds.
IsNormalized
, BooleanDataViewType.Instance, (ref bool value) => value = true);
Scorers\ScoreSchemaFactory.cs (1)
62
probabilityMetadataBuilder.Add(AnnotationUtils.Kinds.
IsNormalized
, BooleanDataViewType.Instance, (ref bool value) => { value = true; });
Transforms\ColumnConcatenatingEstimator.cs (1)
132
meta.Add(new SchemaShape.Column(AnnotationUtils.Kinds.
IsNormalized
, SchemaShape.Column.VectorKind.Scalar, BooleanDataViewType.Instance, false));
Transforms\ColumnConcatenatingTransformer.cs (1)
581
metadata.Add(AnnotationUtils.Kinds.
IsNormalized
, BooleanDataViewType.Instance, (ValueGetter<bool>)GetIsNormalized);
Transforms\GenerateNumberTransform.cs (3)
201
items = items.Prepend(BooleanDataViewType.Instance.GetPair(AnnotationUtils.Kinds.
IsNormalized
));
208
if (kind == AnnotationUtils.Kinds.
IsNormalized
&& !UseCounter[iinfo])
216
if (kind == AnnotationUtils.Kinds.
IsNormalized
&& !UseCounter[iinfo])
Transforms\KeyToVector.cs (2)
359
builder.Add(AnnotationUtils.Kinds.
IsNormalized
, BooleanDataViewType.Instance, getter);
836
metadata.Add(new SchemaShape.Column(AnnotationUtils.Kinds.
IsNormalized
, SchemaShape.Column.VectorKind.Scalar, BooleanDataViewType.Instance, false));
Transforms\Normalizer.cs (2)
359
var isNormalizedMeta = new SchemaShape.Column(AnnotationUtils.Kinds.
IsNormalized
, SchemaShape.Column.VectorKind.Scalar,
746
builder.Add(AnnotationUtils.Kinds.
IsNormalized
, BooleanDataViewType.Instance, (ValueGetter<bool>)IsNormalizedGetter);
Transforms\SlotsDroppingTransformer.cs (1)
870
builder.Add(InputSchema[_cols[iinfo]].Annotations, x => x == AnnotationUtils.Kinds.KeyValues || x == AnnotationUtils.Kinds.
IsNormalized
);
Transforms\TypeConverting.cs (4)
456
builder.Add(InputSchema[ColMapNewToOld[i]].Annotations, name => name == AnnotationUtils.Kinds.
IsNormalized
);
460
builder.Add(AnnotationUtils.Kinds.
IsNormalized
, BooleanDataViewType.Instance, getter);
636
metadata.Add(new SchemaShape.Column(AnnotationUtils.Kinds.
IsNormalized
, SchemaShape.Column.VectorKind.Scalar, BooleanDataViewType.Instance, false));
643
if (col.Annotations.TryFindColumn(AnnotationUtils.Kinds.
IsNormalized
, out var normMeta))
Microsoft.ML.FastTree (2)
TreeEnsembleFeaturizer.cs (2)
153
leafIdMetadataBuilder.Add(AnnotationUtils.Kinds.
IsNormalized
, BooleanDataViewType.Instance, (ref bool value) => value = true);
166
pathIdMetadataBuilder.Add(AnnotationUtils.Kinds.
IsNormalized
, BooleanDataViewType.Instance, (ref bool value) => value = true);
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
});
Microsoft.ML.Transforms (14)
CountFeatureSelection.cs (1)
181
if (col.IsNormalized() && col.Annotations.TryFindColumn(AnnotationUtils.Kinds.
IsNormalized
, out var isNormalizedAnnotation))
GcnTransform.cs (2)
354
builder.Add(AnnotationUtils.Kinds.
IsNormalized
, BooleanDataViewType.Instance, getter);
923
metadata.Add(new SchemaShape.Column(AnnotationUtils.Kinds.
IsNormalized
, SchemaShape.Column.VectorKind.Scalar, BooleanDataViewType.Instance, false));
GroupTransform.cs (1)
293
s => s == AnnotationUtils.Kinds.
IsNormalized
|| s == AnnotationUtils.Kinds.KeyValues);
KeyToVectorMapping.cs (2)
252
builder.Add(AnnotationUtils.Kinds.
IsNormalized
, BooleanDataViewType.Instance, normalizeGetter);
483
metadata.Add(new SchemaShape.Column(AnnotationUtils.Kinds.
IsNormalized
, SchemaShape.Column.VectorKind.Scalar, BooleanDataViewType.Instance, false));
MissingValueDroppingTransformer.cs (1)
211
builder.Add(InputSchema[ColMapNewToOld[i]].Annotations, x => x == AnnotationUtils.Kinds.KeyValues || x == AnnotationUtils.Kinds.
IsNormalized
);
MissingValueIndicatorTransformer.cs (2)
216
builder.Add(AnnotationUtils.Kinds.
IsNormalized
, BooleanDataViewType.Instance, getter);
545
metadata.Add(new SchemaShape.Column(AnnotationUtils.Kinds.
IsNormalized
, SchemaShape.Column.VectorKind.Scalar, BooleanDataViewType.Instance, false));
MissingValueReplacing.cs (2)
616
builder.Add(InputSchema[colIndex].Annotations, x => x == AnnotationUtils.Kinds.SlotNames || x == AnnotationUtils.Kinds.
IsNormalized
);
1048
if (col.Annotations.TryFindColumn(AnnotationUtils.Kinds.
IsNormalized
, out var normalized))
MutualInformationFeatureSelection.cs (1)
248
if (col.IsNormalized() && col.Annotations.TryFindColumn(AnnotationUtils.Kinds.
IsNormalized
, out var isNormalizedAnnotation))
Text\TextFeaturizingEstimator.cs (1)
654
metadata.Add(new SchemaShape.Column(AnnotationUtils.Kinds.
IsNormalized
, SchemaShape.Column.VectorKind.Scalar, BooleanDataViewType.Instance, false));
UngroupTransform.cs (1)
208
case AnnotationUtils.Kinds.
IsNormalized
: