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