45 references to NormFunction
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 (42)
GcnTransform.cs (35)
49public LpNormNormalizingEstimatorBase.NormFunction Norm = LpNormNormalizingEstimatorBase.Defaults.Norm; 91public LpNormNormalizingEstimatorBase.NormFunction? Norm; 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) 810public readonly NormFunction Norm; 820internal ColumnOptionsBase(string name, string inputColumnName, NormFunction normalizerKind, bool substractMean, float scale) 846Contracts.CheckDecode(Enum.IsDefined(typeof(NormFunction), normKindVal)); 847Norm = (NormFunction)normKindVal; 853(Norm == NormFunction.L2 || Norm == NormFunction.StandardDeviation)); 875public const NormFunction Norm = NormFunction.L2; 965/// <seealso cref="NormalizationCatalog.NormalizeLpNorm(TransformsCatalog, string, string, LpNormNormalizingEstimatorBase.NormFunction, bool)"/> 981NormFunction norm = Defaults.Norm, 994NormFunction norm = Defaults.Norm, bool ensureZeroMean = Defaults.LpEnsureZeroMean) 1005NormFunction norm = Defaults.Norm, bool ensureZeroMean = Defaults.LpEnsureZeroMean) 1064: base(name, inputColumnName, ensureUnitStandardDeviation ? NormFunction.StandardDeviation : NormFunction.L2, ensureZeroMean, scale)
NormalizerCatalog.cs (2)
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"/>.
Text\TextFeaturizingEstimator.cs (5)
316internal LpNormNormalizingEstimatorBase.NormFunction LpNorm 323return LpNormNormalizingEstimatorBase.NormFunction.L1; 325return LpNormNormalizingEstimatorBase.NormFunction.L2; 327return LpNormNormalizingEstimatorBase.NormFunction.Infinity; 330return LpNormNormalizingEstimatorBase.NormFunction.L2;