93 references to IntArrayBits
Microsoft.ML.FastTree (93)
Dataset\DatasetUtils.cs (1)
36ratings.Length, IntArrayType.Dense, IntArrayBits.Bits8, ratings.Select(x => (int)x));
Dataset\DenseIntArray.cs (13)
44public override IntArray Clone(IntArrayBits bitsPerItem, IntArrayType type) 145public override IntArrayBits BitsPerItem { get { return IntArrayBits.Bits0; } } 210public override IntArrayBits BitsPerItem { get { return IntArrayBits.Bits10; } } 386public override IntArrayBits BitsPerItem { get { return IntArrayBits.Bits8; } } 473public override IntArrayBits BitsPerItem { get { return IntArrayBits.Bits4; } } 593public override IntArrayBits BitsPerItem { get { return IntArrayBits.Bits16; } } 682public override IntArrayBits BitsPerItem { get { return IntArrayBits.Bits32; } }
Dataset\Feature.cs (5)
48IsTrivialFeature = bins.BitsPerItem == IntArrayBits.Bits0; 295IntArrayBits bitsPerItem = IntArrayBits.Bits0; 333IntArrayBits bitsPerItem = IntArray.NumBitsNeeded(concatValueMap.Length); 360if (bitsPerItem != IntArrayBits.Bits0 && parts.All(x => x.Bins is DeltaSparseIntArray))
Dataset\IntArray.cs (33)
62public abstract IntArrayBits BitsPerItem { get; } 69public static IntArrayBits NumBitsNeeded(int numValues) 73return IntArrayBits.Bits0; 75return IntArrayBits.Bits1; 77return IntArrayBits.Bits4; 79return IntArrayBits.Bits8; 81return IntArrayBits.Bits10; 83return IntArrayBits.Bits16; 85return IntArrayBits.Bits32; 88public static IntArray New(int length, IntArrayType type, IntArrayBits bitsPerItem, IEnumerable<int> values) 92Contracts.CheckParam(Enum.IsDefined(typeof(IntArrayBits), bitsPerItem), nameof(bitsPerItem)); 95if (type == IntArrayType.Dense || bitsPerItem == IntArrayBits.Bits0) 97if (bitsPerItem == IntArrayBits.Bits0) 103else if (bitsPerItem <= IntArrayBits.Bits4) 105else if (bitsPerItem <= IntArrayBits.Bits8) 107else if (bitsPerItem <= IntArrayBits.Bits10) 109else if (bitsPerItem <= IntArrayBits.Bits16) 124public static IntArray New(int length, IntArrayType type, IntArrayBits bitsPerItem) 129if (type == IntArrayType.Dense || bitsPerItem == IntArrayBits.Bits0) 131if (bitsPerItem == IntArrayBits.Bits0) 134else if (bitsPerItem <= IntArrayBits.Bits4) 136else if (bitsPerItem <= IntArrayBits.Bits8) 138else if (bitsPerItem <= IntArrayBits.Bits10) 140else if (bitsPerItem <= IntArrayBits.Bits16) 160IntArrayBits bitsPerItem = (IntArrayBits)buffer.ToInt(ref position); 164if (bitsPerItem == IntArrayBits.Bits0) 166else if (bitsPerItem == IntArrayBits.Bits4) 168else if (bitsPerItem == IntArrayBits.Bits8) 170else if (bitsPerItem == IntArrayBits.Bits10) 172else if (bitsPerItem == IntArrayBits.Bits16) 191public abstract IntArray Clone(IntArrayBits bitsPerItem, IntArrayType type); 323IntArrayBits classicBits = IntArray.NumBitsNeeded(maxval + 1);
Dataset\RepeatIntArray.cs (7)
25public DeltaRepeatIntArray(int length, IntArrayBits bitsPerItem, IEnumerable<int> values) 60if (bitsPerItem == IntArrayBits.Bits0) 62if (bitsPerItem <= IntArrayBits.Bits8) 63bitsPerItem = IntArrayBits.Bits8; 77if (BitsPerItem == IntArrayBits.Bits0) 111public override IntArray Clone(IntArrayBits bitsPerItem, IntArrayType type) 116public override IntArrayBits BitsPerItem { get { return _values.BitsPerItem; } }
Dataset\SegmentIntArray.cs (5)
26private readonly IntArrayBits _bpi; 34public override IntArrayBits BitsPerItem 111_bpi = (IntArrayBits)(buffer.ToInt(ref position)); 124_bpi = IntArrayBits.Bits32; 261public override IntArray Clone(IntArrayBits bitsPerItem, IntArrayType type)
Dataset\SparseIntArray.cs (18)
36public DeltaSparseIntArray(int length, IntArrayBits bitsPerItem) 38if (bitsPerItem == IntArrayBits.Bits0) 40if (bitsPerItem <= IntArrayBits.Bits8) 41bitsPerItem = IntArrayBits.Bits8; 46public DeltaSparseIntArray(int length, IntArrayBits bitsPerItem, IEnumerable<int> values) 78if (bitsPerItem == IntArrayBits.Bits0) 80if (bitsPerItem <= IntArrayBits.Bits8) 81bitsPerItem = IntArrayBits.Bits8; 111if (BitsPerItem == IntArrayBits.Bits0) 122public DeltaSparseIntArray(int length, IntArrayBits bitsPerItem, IEnumerable<KeyValuePair<int, int>> nonZeroValues) 161if (bitsPerItem == IntArrayBits.Bits0) 163if (bitsPerItem <= IntArrayBits.Bits8) 164bitsPerItem = IntArrayBits.Bits8; 248public override IntArrayBits BitsPerItem 255public override IntArray Clone(IntArrayBits bitsPerItem, IntArrayType type) 259if (bitsPerItem <= IntArrayBits.Bits8) 260bitsPerItem = IntArrayBits.Bits8; 501private unsafe void SumupCPlusPlusSparse(SumupInputData input, FeatureHistogram histogram, byte* pValues, byte* pDeltas, int numDeltas, IntArrayBits bitsPerItem)
FastTree.cs (10)
1050IntArrayBits flockBits = IntArray.NumBitsNeeded(hotFeatureStarts[hotFeatureStarts.Length - 1] + 1); 1090Contracts.Assert(flockBits == IntArrayBits.Bits32 || binnedValues.All(b => b < limBin)); 1126IntArrayBits flockBits = IntArray.NumBitsNeeded(hotFeatureStarts[hotFeatureStarts.Length - 1] + 1); 1164Contracts.Assert(flockBits == IntArrayBits.Bits32 || binnedValues.All(b => b < limBin)); 1207var numBitsNeeded = IntArray.NumBitsNeeded(binUpperBounds.Length); 1208if (numBitsNeeded == IntArrayBits.Bits0) 1953IntArrayBits flockBits = IntArray.NumBitsNeeded(hotFeatureStarts[hotFeatureStarts.Length - 1] + 1); 2257IntArrayBits newBits = IntArray.NumBitsNeeded(countBins); 2558IntArrayBits numBitsNeeded = IntArray.NumBitsNeeded(binUpperBounds.Length); 2559if (numBitsNeeded == IntArrayBits.Bits0)
SumupPerformanceCommand.cs (1)
157IntArrayBits bits = IntArray.NumBitsNeeded(_bins);