1 write to _binUpperBounds
Microsoft.ML.Data (1)
Transforms\NormalizeColumnDbl.cs (1)
1239
_binUpperBounds
= binUpperBounds;
16 references to _binUpperBounds
Microsoft.ML.Data (16)
Transforms\NormalizeColumnDbl.cs (16)
1240
_den = new TFloat[
_binUpperBounds
.Length];
1241
for (int i = 0; i <
_binUpperBounds
.Length; i++)
1242
_den[i] = Math.Max(1,
_binUpperBounds
[i].Length - 1);
1245
_offset = new TFloat[
_binUpperBounds
.Length];
1247
for (int i = 0; i <
_binUpperBounds
.Length; i++)
1249
_offset[i] =
_binUpperBounds
[i].FindIndexSorted(0) / _den[i];
1291
ctx.SaveSubModel("BinNormalizer", c => BinNormSerializationUtils.SaveModel(c,
_binUpperBounds
, saveText: true));
1302
Host.Check(dst.Length ==
_binUpperBounds
.Length);
1310
Contracts.Assert(input.Length ==
_binUpperBounds
.Length);
1311
int size =
_binUpperBounds
.Length;
1328
bldr.AddFeature(i, BinUtils.GetValue(in values[i],
_binUpperBounds
[i], _den[i], _offset[i]));
1333
bldr.AddFeature(i, BinUtils.GetValue(in values[i],
_binUpperBounds
[i], _den[i]));
1353
BinUtils.GetValue(in values[ii],
_binUpperBounds
[ivDst], _den[ivDst], _offset[ivDst]));
1359
BinUtils.GetValue(in zero,
_binUpperBounds
[ivDst], _den[ivDst], _offset[ivDst]));
1369
bldr.AddFeature(i, BinUtils.GetValue(in values[ii],
_binUpperBounds
[i], _den[i]));
1377
=> new NormalizingTransformer.BinNormalizerModelParameters<ImmutableArray<TFloat>>(
_binUpperBounds
.Select(b => ImmutableArray.Create(b)).ToImmutableArray(),