2 writes to _offset
Microsoft.ML.Data (2)
Transforms\NormalizeColumnDbl.cs (2)
1245
_offset
= new TFloat[_binUpperBounds.Length];
1254
_offset
= null;
11 references to _offset
Microsoft.ML.Data (11)
Transforms\NormalizeColumnDbl.cs (11)
1249
_offset
[i] = _binUpperBounds[i].FindIndexSorted(0) / _den[i];
1250
Host.Assert(0 <=
_offset
[i] &&
_offset
[i] <= 1);
1251
any |=
_offset
[i] != 0;
1289
ctx.Writer.WriteBoolByte(
_offset
!= null);
1325
if (
_offset
!= null)
1328
bldr.AddFeature(i, BinUtils.GetValue(in values[i], _binUpperBounds[i], _den[i],
_offset
[i]));
1340
if (
_offset
!= null)
1353
BinUtils.GetValue(in values[ii], _binUpperBounds[ivDst], _den[ivDst],
_offset
[ivDst]));
1359
BinUtils.GetValue(in zero, _binUpperBounds[ivDst], _den[ivDst],
_offset
[ivDst]));
1379
ImmutableArray.Create(
_offset
));