19 references to New
Microsoft.ML.FastTree (19)
Dataset\DatasetUtils.cs (2)
35IntArray ratingAsFeature = IntArray.New( 53IntArray bins = IntArray.New(
Dataset\DenseIntArray.cs (3)
48return New(Length, type, bitsPerItem, this); 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 (2)
212: base(DenseIntArray.New(length, IntArrayType.Dense, 0, Enumerable.Repeat(0, length))) 302IntArray newBins = IntArray.New(b.Length, b.Type, bitsPerItem, b);
Dataset\IntArray.cs (1)
367bins = IntArray.New(Length, bestType, classicBits, this);
Dataset\RepeatIntArray.cs (2)
65_values = IntArray.New(tempValueList.Count, IntArrayType.Dense, bitsPerItem, tempValueList) as DenseIntArray; 113return IntArray.New(_length, type, bitsPerItem, this);
Dataset\SparseIntArray.cs (4)
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]));
FastTree.cs (4)
1101IntArray bins = IntArray.New(NumExamples, type, flockBits, binnedValues); 1175IntArray bins = IntArray.New(NumExamples, type, flockBits, binnedValues); 1254bins = IntArray.New(values.Length, arrayType, IntArray.NumBitsNeeded(binUpperBounds.Length), binnedValues); 2032var denseBins = (DenseIntArray)IntArray.New(values.Count, IntArrayType.Dense, flockBits, values);
SumupPerformanceCommand.cs (1)
178arrays[i] = IntArray.New(_len, _type, bits, createIntArray(ch, r));