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