38 references to EnsureSize
Microsoft.ML.Core (1)
Utilities\HashArray.cs (1)
156Utils.EnsureSize(ref _entries, _ct + 1);
Microsoft.ML.Data (18)
Data\DataViewUtils.cs (1)
721Utils.EnsureSize(ref _values, Count + 1, keepOld: true);
DataLoadSave\Binary\Codecs.cs (4)
725Utils.EnsureSize(ref _offsets, _entries, false); 730Utils.EnsureSize(ref _ticks, _entries, false); 1034Utils.EnsureSize(ref values, totalItems, false); 1058Utils.EnsureSize(ref values, count, false);
DataView\CacheDataView.cs (4)
1372Utils.EnsureSize(ref _indexBoundaries, rowCount + 1); 1373Utils.EnsureSize(ref _valueBoundaries, rowCount + 1); 1379Utils.EnsureSize(ref _lengths, rowCount); 1443Utils.EnsureSize(ref _values, _rowCount + 1);
DataView\Transposer.cs (6)
399Utils.EnsureSize(ref indices, ++count); 401Utils.EnsureSize(ref values, count); 539Utils.EnsureSize(ref _indices, vecLen); 542Utils.EnsureSize(ref _values, vecLen); 545Utils.EnsureSize(ref _counts, vecLen, keepOld: false); 656Utils.EnsureSize(ref _cbuff, vecLen);
Transforms\InvertHashUtils.cs (3)
97Utils.EnsureSize(ref buffer, src.Length); 196Utils.EnsureSize(ref buffer, count); 433Utils.EnsureSize(ref buffer, text.Length);
Microsoft.ML.Ensemble (3)
OutputCombiners\BaseStacking.cs (2)
195Utils.EnsureSize(ref labels, count + 1); 196Utils.EnsureSize(ref features, count + 1);
Selector\SubModelSelector\BaseDiverseSelector.cs (1)
53Utils.EnsureSize(ref preds, count + 1);
Microsoft.ML.FastTree (2)
Dataset\FeatureFlock.cs (1)
186Utils.EnsureSize(ref hist, len);
FastTree.cs (1)
2700Utils.EnsureSize(ref workArray, _featureIndices.Length, keepOld: false);
Microsoft.ML.KMeansClustering (1)
KMeansPlusPlusTrainer.cs (1)
1678Utils.EnsureSize(ref dst, numSamples);
Microsoft.ML.LightGbm (7)
LightGbmTrainerBase.cs (7)
975Utils.EnsureSize(ref sampleValuePerColumn[i], curNonZeroCnt + 1); 976Utils.EnsureSize(ref sampleIndicesPerColumn[i], curNonZeroCnt + 1); 1000Utils.EnsureSize(ref sampleValuePerColumn[colIdx], curNonZeroCnt + 1); 1001Utils.EnsureSize(ref sampleIndicesPerColumn[colIdx], curNonZeroCnt + 1); 1100Utils.EnsureSize(ref indptr, curRowCount + 1); 1111Utils.EnsureSize(ref indptr, curRowCount + 1); 1120Utils.EnsureSize(ref indptr, curRowCount + 1);
Microsoft.ML.StandardTrainers (5)
Standard\LogisticRegression\LbfgsPredictorBase.cs (3)
622Utils.EnsureSize(ref _features, index + 1); 623Utils.EnsureSize(ref _labels, index + 1); 626Utils.EnsureSize(ref _weights, index + 1);
Standard\MulticlassClassification\MulticlassNaiveBayesTrainer.cs (2)
169Utils.EnsureSize(ref labelHistogram, size); 170Utils.EnsureSize(ref featureHistogram, size);
Microsoft.ML.Transforms (1)
Text\NgramTransform.cs (1)
288Utils.EnsureSize(ref invDocFreqs[iinfo], totalNgrams);