24 references to ToArray
Microsoft.ML.FastTree (24)
Dataset\Dataset.cs (10)
274null : new Dataset(datasetSkeletonPart[p], featureParts[p])).ToArray(numParts); 589int[] numQueries = fraction.Select(x => (int)(x * NumQueries)).ToArray(numParts); 594queries = numQueries.Select(q => new int[q]).ToArray(numParts); 621List<int>[] listQueries = Enumerable.Range(0, numParts).Select(x => new List<int>()).ToArray(numParts); 630queries = listQueries.Select(x => x.ToArray()).ToArray(numParts); 636).ToArray(numParts); 647int[][] boundaries = queries.Select(q => new int[q.Length + 1]).ToArray(numParts); 673docIds[p])).ToArray(numParts); 748double[][] maxAtN = Enumerable.Range(0, trunc).Select(x => new double[boundaries.Length - 1]).ToArray(trunc); 963_flockIndexers = _dataset._flocks.Select(d => d.GetFlockIndexer()).ToArray(_dataset.NumFlocks);
Dataset\DatasetUtils.cs (1)
57uint[] valueMap = uvalToOrder.Keys.OrderBy(x => x).ToArray(uvalToOrder.Count);
Dataset\DenseIntArray.cs (3)
405_data = values.Select(i => (byte)i).ToArray(len); 605_data = values.Select(i => (ushort)i).ToArray(len); 694_data = values.ToArray(len);
FastTree.cs (4)
1103var bups = features.Select(fi => BinUpperBounds[fi]).ToArray(features.Count); 1177var bups = features.Select(fi => BinUpperBounds[fi]).ToArray(features.Count); 1630ulong[] dids = Enumerable.Range(0, numExamples).Select(d => (ulong)d).ToArray(numExamples); 2033var bups = features.Select(fi => BinUpperBounds[fi]).ToArray(features.Count);
FastTreeClassification.cs (1)
253_trainSetLabels = GetClassificationLabelsFromRatings(TrainSet).ToArray(TrainSet.NumDocs);
FastTreeRegression.cs (1)
179return dlabels.Select(x => (float)x).ToArray(dlabels.Length);
RandomForestClassification.cs (1)
357_trainSetLabels = TrainSet.Ratings.Select(x => x >= 1).ToArray(TrainSet.NumDocs);
SumupPerformanceCommand.cs (1)
273arrays.Select(bins => new FeatureHistogram(bins, _bins, false)).ToArray(arrays.Length);
Utils\MappedObjectPool.cs (2)
29_map = Enumerable.Range(0, maxIndex).Select(x => -1).ToArray(maxIndex); 30_inverseMap = Enumerable.Range(0, _pool.Length).Select(x => -1).ToArray(_pool.Length);