24 references to ToArray
Microsoft.ML.FastTree (24)
Dataset\Dataset.cs (10)
274
null : new Dataset(datasetSkeletonPart[p], featureParts[p])).
ToArray
(numParts);
589
int[] numQueries = fraction.Select(x => (int)(x * NumQueries)).
ToArray
(numParts);
594
queries = numQueries.Select(q => new int[q]).
ToArray
(numParts);
621
List<int>[] listQueries = Enumerable.Range(0, numParts).Select(x => new List<int>()).
ToArray
(numParts);
630
queries = listQueries.Select(x => x.ToArray()).
ToArray
(numParts);
636
).
ToArray
(numParts);
647
int[][] boundaries = queries.Select(q => new int[q.Length + 1]).
ToArray
(numParts);
673
docIds[p])).
ToArray
(numParts);
748
double[][] 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)
57
uint[] 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)
1103
var bups = features.Select(fi => BinUpperBounds[fi]).
ToArray
(features.Count);
1177
var bups = features.Select(fi => BinUpperBounds[fi]).
ToArray
(features.Count);
1630
ulong[] dids = Enumerable.Range(0, numExamples).Select(d => (ulong)d).
ToArray
(numExamples);
2033
var bups = features.Select(fi => BinUpperBounds[fi]).
ToArray
(features.Count);
FastTreeClassification.cs (1)
253
_trainSetLabels = GetClassificationLabelsFromRatings(TrainSet).
ToArray
(TrainSet.NumDocs);
FastTreeRegression.cs (1)
179
return 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)
273
arrays.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);