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