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