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