1 write to Offset
Microsoft.ML.Data (1)
Transforms\Normalizer.cs (1)
888Offset = offset;
43 references to Offset
Microsoft.ML.IntegrationTests (1)
IntrospectiveTraining.cs (1)
277Common.AssertFiniteNumbers(config.Offset);
Microsoft.ML.Samples (10)
Dynamic\Transforms\NormalizeLogMeanVariance.cs (2)
87var offset = noCdfParams.Offset.Length == 0 ? 0 : noCdfParams.Offset[1];
Dynamic\Transforms\NormalizeLogMeanVarianceFixZero.cs (2)
69var offset = noCdfParams.Offset.Length == 0 ? 0 : noCdfParams.Offset[1];
Dynamic\Transforms\NormalizeMeanVariance.cs (2)
89var offset = noCdfParams.Offset.Length == 0 ? 0 : noCdfParams.Offset[1];
Dynamic\Transforms\NormalizeMinMax.cs (2)
77Console.WriteLine(" y = (x - (" + (transformParams.Offset.Length == 0 ? 780 : transformParams.Offset[1]) + ")) * " + transformParams
Dynamic\Transforms\NormalizeMinMaxMulticolumn.cs (2)
114Console.WriteLine(" y = (x - (" + (transformParams.Offset.Length == 0 ? 1150 : transformParams.Offset[1]) + ")) * " + transformParams
Microsoft.ML.Tests (32)
Transformers\NormalizerTests.cs (32)
143Assert.Equal(0, floatAffineData.Offset); 147Assert.Empty(floatAffineDataVec.Offset); 151Assert.Equal(0, doubleAffineData.Offset); 155Assert.Empty(doubleAffineDataVec.Offset); 180Assert.Equal(0, floatCdfMeanData.Offset); 185Assert.Empty(floatCdfMeanDataVec.Offset); 189Assert.Equal(0, doubleCdfMeanData.Offset); 193Assert.Empty(doubleCdfMeanDataVec.Offset); 260Assert.Equal(0, floatAffineModel.Offset); 264Assert.Empty(floatAffineModelVec.Offset); 268Assert.Equal(0, doubleAffineModel.Offset); 274Assert.Empty(doubleAffineModelVector.Offset); 311Assert.Equal(0, floatCdfMeanModel.Offset); 317Assert.Empty(floatCdfMeanModelVector.Offset); 321Assert.Equal(0, doubleCdfMeanModel.Offset); 327Assert.Empty(doubleCdfMeanModelVector.Offset); 399Assert.Equal(5.8d, floatAffineModel.Offset, 0.01); 408Assert.Equal(5.8, floatAffineModelVec.Offset[0], 0.01); 409Assert.Equal(3d, floatAffineModelVec.Offset[1], 0.01); 410Assert.Equal(4.4, floatAffineModelVec.Offset[2], 0.01); 411Assert.Equal(1.3, floatAffineModelVec.Offset[3], 0.01); 415Assert.Equal(5.8, doubleAffineModel.Offset, 0.01); 424Assert.Equal(5.8, doubleAffineModelVector.Offset[0], 0.01); 425Assert.Equal(3, doubleAffineModelVector.Offset[1], 0.01); 426Assert.Equal(4.4, doubleAffineModelVector.Offset[2], 0.01); 427Assert.Equal(1.3, doubleAffineModelVector.Offset[3], 0.01); 439Assert.Equal(0d, floatAffineModel.Offset, 0.01); 448Assert.Empty(floatAffineModelVec.Offset); 452Assert.Equal(0, doubleAffineModel.Offset, 0.01); 461Assert.Empty(doubleAffineModelVector.Offset); 927Assert.Equal(0f, noCdfParams.Offset); 970Assert.Empty(noCdfParams.Offset);