2 types derived from LpNormNormalizingEstimatorBase
Microsoft.ML.Transforms (2)
GcnTransform.cs (2)
966
public sealed class LpNormNormalizingEstimator :
LpNormNormalizingEstimatorBase
1045
public sealed class GlobalContrastNormalizingEstimator :
LpNormNormalizingEstimatorBase
50 references to LpNormNormalizingEstimatorBase
Microsoft.ML.Samples (1)
Dynamic\Transforms\NormalizeLpNorm.cs (1)
28
norm:
LpNormNormalizingEstimatorBase
.NormFunction.L1,
Microsoft.ML.Tests (2)
OnnxConversionTest.cs (1)
410
LpNormNormalizingEstimatorBase
.NormFunction norm)
Transformers\NormalizerTests.cs (1)
765
.Append(ML.Transforms.NormalizeLpNorm("lpNorm2", "features", norm:
LpNormNormalizingEstimatorBase
.NormFunction.L1, ensureZeroMean: true));
Microsoft.ML.Transforms (47)
GcnTransform.cs (35)
49
public
LpNormNormalizingEstimatorBase
.NormFunction Norm =
LpNormNormalizingEstimatorBase
.Defaults.Norm;
52
public bool SubMean =
LpNormNormalizingEstimatorBase
.Defaults.LpEnsureZeroMean;
61
public bool SubMean =
LpNormNormalizingEstimatorBase
.Defaults.GcnEnsureZeroMean;
64
public bool UseStdDev =
LpNormNormalizingEstimatorBase
.Defaults.EnsureUnitStdDev;
67
public float Scale =
LpNormNormalizingEstimatorBase
.Defaults.Scale;
91
public
LpNormNormalizingEstimatorBase
.NormFunction? Norm;
139
private sealed class ColumnOptionsLoaded :
LpNormNormalizingEstimatorBase
.ColumnOptionsBase
186
internal IReadOnlyCollection<
LpNormNormalizingEstimatorBase
.ColumnOptionsBase> Columns => _columns.AsReadOnly();
187
private readonly
LpNormNormalizingEstimatorBase
.ColumnOptionsBase[] _columns;
189
private static (string outputColumnName, string inputColumnName)[] GetColumnPairs(
LpNormNormalizingEstimatorBase
.ColumnOptionsBase[] columns)
198
if (!
LpNormNormalizingEstimatorBase
.IsColumnTypeValid(inType))
199
throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input", inputSchema[srcCol].Name,
LpNormNormalizingEstimatorBase
.ExpectedColumnType, inType.ToString());
204
internal LpNormNormalizingTransformer(IHostEnvironment env, params
LpNormNormalizingEstimatorBase
.ColumnOptionsBase[] columns) :
322
private readonly
LpNormNormalizingEstimatorBase
.NormFunction[] _norms;
333
_norms = new
LpNormNormalizingEstimatorBase
.NormFunction[_parent.ColumnPairs.Length];
379
case
LpNormNormalizingEstimatorBase
.NormFunction.StandardDeviation:
390
case
LpNormNormalizingEstimatorBase
.NormFunction.L2:
401
case
LpNormNormalizingEstimatorBase
.NormFunction.L1:
412
case
LpNormNormalizingEstimatorBase
.NormFunction.Infinity:
425
goto case
LpNormNormalizingEstimatorBase
.NormFunction.L2;
431
case
LpNormNormalizingEstimatorBase
.NormFunction.StandardDeviation:
440
case
LpNormNormalizingEstimatorBase
.NormFunction.L2:
449
case
LpNormNormalizingEstimatorBase
.NormFunction.L1:
458
case
LpNormNormalizingEstimatorBase
.NormFunction.Infinity:
469
goto case
LpNormNormalizingEstimatorBase
.NormFunction.L2;
635
if ((_norms[iinfo] !=
LpNormNormalizingEstimatorBase
.NormFunction.StandardDeviation) && (_ensureZeroMeans[iinfo] == false))
638
if (_norms[iinfo] ==
LpNormNormalizingEstimatorBase
.NormFunction.L1)
640
else if (_norms[iinfo] ==
LpNormNormalizingEstimatorBase
.NormFunction.L2)
659
if (_norms[iinfo] ==
LpNormNormalizingEstimatorBase
.NormFunction.L1)
673
else if (_norms[iinfo] ==
LpNormNormalizingEstimatorBase
.NormFunction.L2)
692
else if (_norms[iinfo] ==
LpNormNormalizingEstimatorBase
.NormFunction.Infinity)
702
else if (_norms[iinfo] ==
LpNormNormalizingEstimatorBase
.NormFunction.StandardDeviation)
883
/// Create a <see cref="
LpNormNormalizingEstimatorBase
"/> that takes multiple pairs of columns.
965
/// <seealso cref="NormalizationCatalog.NormalizeLpNorm(TransformsCatalog, string, string,
LpNormNormalizingEstimatorBase
.NormFunction, bool)"/>
NormalizerCatalog.cs (7)
416
LpNormNormalizingEstimatorBase
.NormFunction norm =
LpNormNormalizingEstimatorBase
.Defaults.Norm, bool ensureZeroMean =
LpNormNormalizingEstimatorBase
.Defaults.LpEnsureZeroMean)
420
/// Takes column filled with a vector of floats and normalize its norm to one. Note that the allowed norm functions are defined in <see cref="
LpNormNormalizingEstimatorBase
.NormFunction"/>.
450
bool ensureZeroMean =
LpNormNormalizingEstimatorBase
.Defaults.GcnEnsureZeroMean,
451
bool ensureUnitStandardDeviation =
LpNormNormalizingEstimatorBase
.Defaults.EnsureUnitStdDev,
452
float scale =
LpNormNormalizingEstimatorBase
.Defaults.Scale)
Text\TextFeaturizingEstimator.cs (5)
316
internal
LpNormNormalizingEstimatorBase
.NormFunction LpNorm
323
return
LpNormNormalizingEstimatorBase
.NormFunction.L1;
325
return
LpNormNormalizingEstimatorBase
.NormFunction.L2;
327
return
LpNormNormalizingEstimatorBase
.NormFunction.Infinity;
330
return
LpNormNormalizingEstimatorBase
.NormFunction.L2;