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