1 write to Scale
Microsoft.ML.Data (1)
Transforms\Normalizer.cs (1)
887Scale = scale;
55 references to Scale
Microsoft.ML.IntegrationTests (1)
IntrospectiveTraining.cs (1)
278Common.AssertFiniteNumbers(config.Scale);
Microsoft.ML.Samples (5)
Dynamic\Transforms\NormalizeLogMeanVariance.cs (1)
88var scale = noCdfParams.Scale[1];
Dynamic\Transforms\NormalizeLogMeanVarianceFixZero.cs (1)
70var scale = noCdfParams.Scale[1];
Dynamic\Transforms\NormalizeMeanVariance.cs (1)
90var scale = noCdfParams.Scale[1];
Dynamic\Transforms\NormalizeMinMax.cs (1)
79.Scale[1]);
Dynamic\Transforms\NormalizeMinMaxMulticolumn.cs (1)
116.Scale[1]);
Microsoft.ML.Tests (49)
Transformers\NormalizerTests.cs (49)
142Assert.Equal(0.12658228f, floatAffineData.Scale); 146Assert.Equal(4, floatAffineDataVec.Scale.Length); 150Assert.Equal(0.12658227848101264, doubleAffineData.Scale); 154Assert.Equal(4, doubleAffineDataVec.Scale.Length); 179Assert.Equal(0.169309646f, floatCdfMeanData.Scale); 183Assert.Equal(0.16930964589119f, floatCdfMeanDataVec.Scale[0]); 184Assert.Equal(4, floatCdfMeanDataVec.Scale.Length); 188Assert.Equal(0.16930963784387665, doubleCdfMeanData.Scale); 192Assert.Equal(4, doubleCdfMeanDataVec.Scale.Length); 259Assert.Equal(0.12658228f, floatAffineModel.Scale); 263Assert.Equal(4, floatAffineModelVec.Scale.Length); 267Assert.Equal(0.12658227848101264, doubleAffineModel.Scale); 271Assert.Equal(4, doubleAffineModelVector.Scale.Length); 272Assert.Equal(0.12658227848101264, doubleAffineModelVector.Scale[0]); 273Assert.Equal(0.4, doubleAffineModelVector.Scale[3]); 310Assert.Equal(1.33754611f, floatCdfMeanModel.Scale); 314Assert.Equal(1.33754611f, floatCdfMeanModelVector.Scale[0]); 315Assert.Equal(1.75526536f, floatCdfMeanModelVector.Scale[3]); 316Assert.Equal(4, floatCdfMeanModelVector.Scale.Length); 320Assert.Equal(1.3375461389666252, doubleCdfMeanModel.Scale); 324Assert.Equal(4, doubleCdfMeanModelVector.Scale.Length); 325Assert.True(1.3375461389666252 == doubleCdfMeanModelVector.Scale[0]); 326Assert.True(1.7552654477786787 == doubleCdfMeanModelVector.Scale[3]); 398Assert.Equal(1 / 1.8, floatAffineModel.Scale, 0.01); 402Assert.Equal(4, floatAffineModelVec.Scale.Length); 403Assert.Equal(.5555556, floatAffineModelVec.Scale[0], 0.01); 404Assert.Equal(.8333333, floatAffineModelVec.Scale[1], 0.01); 405Assert.Equal(.3389830, floatAffineModelVec.Scale[2], 0.01); 406Assert.Equal(.8333333, floatAffineModelVec.Scale[3], 0.01); 414Assert.Equal(1 / 1.8, doubleAffineModel.Scale, 0.01); 418Assert.Equal(4, doubleAffineModelVector.Scale.Length); 419Assert.Equal(.5555556, doubleAffineModelVector.Scale[0], 0.01); 420Assert.Equal(.8333333, doubleAffineModelVector.Scale[1], 0.01); 421Assert.Equal(.3389830, doubleAffineModelVector.Scale[2], 0.01); 422Assert.Equal(.8333333, doubleAffineModelVector.Scale[3], 0.01); 438Assert.Equal(1 / 1.8, floatAffineModel.Scale, 0.01); 442Assert.Equal(4, floatAffineModelVec.Scale.Length); 443Assert.Equal(.5555556, floatAffineModelVec.Scale[0], 0.01); 444Assert.Equal(.8333333, floatAffineModelVec.Scale[1], 0.01); 445Assert.Equal(.3389830, floatAffineModelVec.Scale[2], 0.01); 446Assert.Equal(.8333333, floatAffineModelVec.Scale[3], 0.01); 451Assert.Equal(1 / 1.8, doubleAffineModel.Scale, 0.01); 455Assert.Equal(4, doubleAffineModelVector.Scale.Length); 456Assert.Equal(.5555556, doubleAffineModelVector.Scale[0], 0.01); 457Assert.Equal(.8333333, doubleAffineModelVector.Scale[1], 0.01); 458Assert.Equal(.3389830, doubleAffineModelVector.Scale[2], 0.01); 459Assert.Equal(.8333333, doubleAffineModelVector.Scale[3], 0.01); 928Assert.NotEqual(0f, noCdfParams.Scale); 971Assert.NotEqual(0f, noCdfParams.Scale[i]);