74 references to IntArrayType
Microsoft.ML.FastTree (74)
Dataset\DatasetUtils.cs (2)
36
ratings.Length,
IntArrayType
.Dense, IntArrayBits.Bits8, ratings.Select(x => (int)x));
54
skel.NumDocs,
IntArrayType
.Dense, IntArray.NumBitsNeeded(uvalToOrder.Count),
Dataset\DenseIntArray.cs (7)
25
public override
IntArrayType
Type { get { return
IntArrayType
.Dense; } }
44
public override IntArray Clone(IntArrayBits bitsPerItem,
IntArrayType
type)
46
if (type ==
IntArrayType
.Current)
47
type =
IntArrayType
.Dense;
58
return IntArray.New(itemIndices.Length,
IntArrayType
.Dense, BitsPerItem, itemIndices.Select(x => this[x]));
68
newArrays[p] = IntArray.New(assignment[p].Length,
IntArrayType
.Dense, BitsPerItem, assignment[p].Select(x => this[x]));
Dataset\Feature.cs (3)
38
public
IntArrayType
BinsType { get; private set; }
212
: base(DenseIntArray.New(length,
IntArrayType
.Dense, 0, Enumerable.Repeat(0, length)))
334
DenseIntArray concatBins = (DenseIntArray)IntArray.New(length,
IntArrayType
.Dense, bitsPerItem);
Dataset\IntArray.cs (27)
64
public abstract
IntArrayType
Type { get; }
88
public static IntArray New(int length,
IntArrayType
type, IntArrayBits bitsPerItem, IEnumerable<int> values)
91
Contracts.CheckParam(Enum.IsDefined(typeof(
IntArrayType
), type) && type !=
IntArrayType
.Current, nameof(type));
95
if (type ==
IntArrayType
.Dense || bitsPerItem == IntArrayBits.Bits0)
114
else if (type ==
IntArrayType
.Sparse)
116
else if (type ==
IntArrayType
.Repeat)
118
else if (type ==
IntArrayType
.Segmented)
124
public static IntArray New(int length,
IntArrayType
type, IntArrayBits bitsPerItem)
127
Contracts.CheckParam(type ==
IntArrayType
.Current || type ==
IntArrayType
.Repeat || type ==
IntArrayType
.Segmented, nameof(type));
129
if (type ==
IntArrayType
.Dense || bitsPerItem == IntArrayBits.Bits0)
145
else if (type ==
IntArrayType
.Sparse)
159
IntArrayType
type = (
IntArrayType
)buffer.ToInt(ref position);
162
if (type ==
IntArrayType
.Dense)
177
else if (type ==
IntArrayType
.Sparse)
179
else if (type ==
IntArrayType
.Repeat)
181
else if (type ==
IntArrayType
.Segmented)
191
public abstract IntArray Clone(IntArrayBits bitsPerItem,
IntArrayType
type);
343
IntArrayType
bestType =
IntArrayType
.Dense;
350
bestType =
IntArrayType
.Sparse;
354
bestType =
IntArrayType
.Repeat;
358
bestType =
IntArrayType
.Segmented;
365
if (bestType !=
IntArrayType
.Segmented)
Dataset\RepeatIntArray.cs (4)
65
_values = IntArray.New(tempValueList.Count,
IntArrayType
.Dense, bitsPerItem, tempValueList) as DenseIntArray;
111
public override IntArray Clone(IntArrayBits bitsPerItem,
IntArrayType
type)
118
public override
IntArrayType
Type { get { return
IntArrayType
.Repeat; } }
Dataset\SegmentIntArray.cs (3)
39
public override
IntArrayType
Type
41
get { return
IntArrayType
.Segmented; }
261
public override IntArray Clone(IntArrayBits bitsPerItem,
IntArrayType
type)
Dataset\SparseIntArray.cs (11)
83
_values = IntArray.New(tempValueList.Count,
IntArrayType
.Dense, bitsPerItem, tempValueList) as DenseIntArray;
166
_values = IntArray.New(tempValueList.Count,
IntArrayType
.Dense, bitsPerItem, tempValueList) as DenseIntArray;
206
parts[i] = IntArray.New(assignment[i].Length,
IntArrayType
.Sparse, BitsPerItem, assignment[i].Select(x => indexer[x]));
221
return IntArray.New(itemIndices.Length,
IntArrayType
.Sparse, BitsPerItem, itemIndices.Select(x => indexer[x]));
253
public override
IntArrayType
Type { get { return
IntArrayType
.Sparse; } }
255
public override IntArray Clone(IntArrayBits bitsPerItem,
IntArrayType
type)
257
if (type ==
IntArrayType
.Sparse || type ==
IntArrayType
.Current)
261
DenseIntArray newValues = _values.Clone(bitsPerItem,
IntArrayType
.Dense) as DenseIntArray;
266
DenseIntArray dense = IntArray.New(Length,
IntArrayType
.Dense, BitsPerItem) as DenseIntArray;
FastTree.cs (10)
1098
IntArrayType
type = hotCount < (1 - sparsifyThreshold) * NumExamples
1099
?
IntArrayType
.Sparse
1100
:
IntArrayType
.Dense;
1172
IntArrayType
type = hotCount < (1 - sparsifyThreshold) * NumExamples
1173
?
IntArrayType
.Sparse
1174
:
IntArrayType
.Dense;
1253
IntArrayType
arrayType = firstBinFrac > sparsifyThreshold ?
IntArrayType
.Sparse :
IntArrayType
.Dense;
2032
var denseBins = (DenseIntArray)IntArray.New(values.Count,
IntArrayType
.Dense, flockBits, values);
SumupPerformanceCommand.cs (7)
38
public
IntArrayType
Type =
IntArrayType
.Dense;
71
private readonly
IntArrayType
_type;
89
_host.CheckUserArg(Enum.IsDefined(typeof(
IntArrayType
), args.Type) && args.Type !=
IntArrayType
.Current, nameof(args.Type), "Value not defined");
163
case
IntArrayType
.Dense:
166
case
IntArrayType
.Sparse: