2 types derived from LpNormNormalizingEstimatorBase
Microsoft.ML.Transforms (2)
GcnTransform.cs (2)
966public sealed class LpNormNormalizingEstimator : LpNormNormalizingEstimatorBase 1045public sealed class GlobalContrastNormalizingEstimator : LpNormNormalizingEstimatorBase
50 references to LpNormNormalizingEstimatorBase
Microsoft.ML.Samples (1)
Dynamic\Transforms\NormalizeLpNorm.cs (1)
28norm: LpNormNormalizingEstimatorBase.NormFunction.L1,
Microsoft.ML.Tests (2)
OnnxConversionTest.cs (1)
410LpNormNormalizingEstimatorBase.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)
49public LpNormNormalizingEstimatorBase.NormFunction Norm = LpNormNormalizingEstimatorBase.Defaults.Norm; 52public bool SubMean = LpNormNormalizingEstimatorBase.Defaults.LpEnsureZeroMean; 61public bool SubMean = LpNormNormalizingEstimatorBase.Defaults.GcnEnsureZeroMean; 64public bool UseStdDev = LpNormNormalizingEstimatorBase.Defaults.EnsureUnitStdDev; 67public float Scale = LpNormNormalizingEstimatorBase.Defaults.Scale; 91public LpNormNormalizingEstimatorBase.NormFunction? Norm; 139private sealed class ColumnOptionsLoaded : LpNormNormalizingEstimatorBase.ColumnOptionsBase 186internal IReadOnlyCollection<LpNormNormalizingEstimatorBase.ColumnOptionsBase> Columns => _columns.AsReadOnly(); 187private readonly LpNormNormalizingEstimatorBase.ColumnOptionsBase[] _columns; 189private static (string outputColumnName, string inputColumnName)[] GetColumnPairs(LpNormNormalizingEstimatorBase.ColumnOptionsBase[] columns) 198if (!LpNormNormalizingEstimatorBase.IsColumnTypeValid(inType)) 199throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input", inputSchema[srcCol].Name, LpNormNormalizingEstimatorBase.ExpectedColumnType, inType.ToString()); 204internal LpNormNormalizingTransformer(IHostEnvironment env, params LpNormNormalizingEstimatorBase.ColumnOptionsBase[] columns) : 322private readonly LpNormNormalizingEstimatorBase.NormFunction[] _norms; 333_norms = new LpNormNormalizingEstimatorBase.NormFunction[_parent.ColumnPairs.Length]; 379case LpNormNormalizingEstimatorBase.NormFunction.StandardDeviation: 390case LpNormNormalizingEstimatorBase.NormFunction.L2: 401case LpNormNormalizingEstimatorBase.NormFunction.L1: 412case LpNormNormalizingEstimatorBase.NormFunction.Infinity: 425goto case LpNormNormalizingEstimatorBase.NormFunction.L2; 431case LpNormNormalizingEstimatorBase.NormFunction.StandardDeviation: 440case LpNormNormalizingEstimatorBase.NormFunction.L2: 449case LpNormNormalizingEstimatorBase.NormFunction.L1: 458case LpNormNormalizingEstimatorBase.NormFunction.Infinity: 469goto case LpNormNormalizingEstimatorBase.NormFunction.L2; 635if ((_norms[iinfo] != LpNormNormalizingEstimatorBase.NormFunction.StandardDeviation) && (_ensureZeroMeans[iinfo] == false)) 638if (_norms[iinfo] == LpNormNormalizingEstimatorBase.NormFunction.L1) 640else if (_norms[iinfo] == LpNormNormalizingEstimatorBase.NormFunction.L2) 659if (_norms[iinfo] == LpNormNormalizingEstimatorBase.NormFunction.L1) 673else if (_norms[iinfo] == LpNormNormalizingEstimatorBase.NormFunction.L2) 692else if (_norms[iinfo] == LpNormNormalizingEstimatorBase.NormFunction.Infinity) 702else 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)
416LpNormNormalizingEstimatorBase.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"/>. 450bool ensureZeroMean = LpNormNormalizingEstimatorBase.Defaults.GcnEnsureZeroMean, 451bool ensureUnitStandardDeviation = LpNormNormalizingEstimatorBase.Defaults.EnsureUnitStdDev, 452float scale = LpNormNormalizingEstimatorBase.Defaults.Scale)
Text\TextFeaturizingEstimator.cs (5)
316internal LpNormNormalizingEstimatorBase.NormFunction LpNorm 323return LpNormNormalizingEstimatorBase.NormFunction.L1; 325return LpNormNormalizingEstimatorBase.NormFunction.L2; 327return LpNormNormalizingEstimatorBase.NormFunction.Infinity; 330return LpNormNormalizingEstimatorBase.NormFunction.L2;