1 write to SlotsMax
Microsoft.ML.Data (1)
Utilities\SlotDropper.cs (1)
48
SlotsMax
= slotsMax;
22 references to SlotsMax
Microsoft.ML.Data (22)
Transforms\SlotsDroppingTransformer.cs (1)
857
GetCategoricalSlotRangesCore(iinfo, _slotDropper[iinfo].SlotsMin, _slotDropper[iinfo].
SlotsMax
, _categoricalRanges[iinfo], ref dst);
Utilities\SlotDropper.cs (21)
63
int dstLength = srcLength - _lengthReduction[index] + Math.Max(
SlotsMax
[index] - srcLength + 1, 0);
70
int[] lengthReduction = new int[
SlotsMax
.Length];
73
for (int i = 0; i <
SlotsMax
.Length; i++)
76
Contracts.Assert(SlotsMin[i] <=
SlotsMax
[i]);
77
prevLim =
SlotsMax
[i] + 1;
131
for (int i = 0; i <
SlotsMax
.Length && iSrc < src.Length; i++)
139
iSrc =
SlotsMax
[i] + 1;
172
int max =
SlotsMax
[iRange];
194
while (++iRange <
SlotsMax
.Length &&
SlotsMax
[iRange] < index)
196
if (
SlotsMax
.Length - iRange >= threshold1 &&
197
SlotsMax
[iRange + threshold2] < index)
199
iRange =
SlotsMax
.FindIndexSorted(iRange + threshold2,
SlotsMax
.Length, index);
200
Contracts.Assert(iRange ==
SlotsMax
.Length ||
201
iRange > 0 &&
SlotsMax
[iRange - 1] < index && index <=
SlotsMax
[iRange]);
205
if (iRange <
SlotsMax
.Length)
208
max =
SlotsMax
[iRange];
223
var droppedSlots = Enumerable.Range(SlotsMin[0],
SlotsMax
[0] - SlotsMin[0] + 1);
226
droppedSlots = droppedSlots.Concat(Enumerable.Range(SlotsMin[i],
SlotsMax
[i] - SlotsMin[i] + 1));