25 references to CreateEmpty
Microsoft.ML.Data (5)
Evaluators\ClusteringEvaluator.cs (2)
332_clusterCentroids[i] = VBufferUtils.CreateEmpty<Single>(features.Value.Type.GetVectorSize()); 413_clusterCentroids[i] = VBufferUtils.CreateEmpty<Single>(features.Value.Type.GetVectorSize());
Scorers\FeatureContributionCalculation.cs (1)
334_slotNames = VBufferUtils.CreateEmpty<ReadOnlyMemory<char>>(featureSize);
Transforms\FeatureContributionCalculationTransformer.cs (1)
190_slotNames = VBufferUtils.CreateEmpty<ReadOnlyMemory<char>>(_featureColumnType.Size);
Transforms\KeyToVector.cs (1)
386namesSlotSrc = VBufferUtils.CreateEmpty<ReadOnlyMemory<char>>(typeSrc.Size);
Microsoft.ML.FastTree (3)
GamModelParameters.cs (1)
641_featNames = VBufferUtils.CreateEmpty<ReadOnlyMemory<char>>(len);
TreeEnsemble\InternalTreeEnsemble.cs (2)
449_names = VBufferUtils.CreateEmpty<ReadOnlyMemory<char>>(featValueCount); 450_content = VBufferUtils.CreateEmpty<ReadOnlyMemory<char>>(featValueCount);
Microsoft.ML.PCA (2)
PcaTrainer.cs (2)
226var mean = _ensureZeroMean ? VBufferUtils.CreateDense<float>(dimension) : VBufferUtils.CreateEmpty<float>(dimension); 501_mean = VBufferUtils.CreateEmpty<float>(_dimension);
Microsoft.ML.StandardTrainers (13)
Optimizer\LineSearch.cs (1)
510VBuffer<float> grad = VBufferUtils.CreateEmpty<float>(2);
Optimizer\Optimizer.cs (1)
235return _keepDense ? VBufferUtils.CreateDense<float>(Dim) : VBufferUtils.CreateEmpty<float>(Dim);
Optimizer\SgdOptimizer.cs (3)
171VBuffer<float> grad = VBufferUtils.CreateEmpty<float>(dim); 172VBuffer<float> step = VBufferUtils.CreateEmpty<float>(dim); 176VBuffer<float> avg = VBufferUtils.CreateEmpty<float>(dim);
Standard\LinearModelParameters.cs (1)
198Weight = VBufferUtils.CreateEmpty<float>(len);
Standard\LogisticRegression\LbfgsPredictorBase.cs (4)
337init = VBufferUtils.CreateEmpty<float>(BiasCount + WeightCount); 351var oldWeights = VBufferUtils.CreateEmpty<float>(BiasCount + WeightCount); 399sgdWeights = VBufferUtils.CreateEmpty<float>(BiasCount + WeightCount); 679_localGradients[i] = VBufferUtils.CreateEmpty<float>(size);
Standard\LogisticRegression\LogisticRegression.cs (1)
271var namesSpans = VBufferUtils.CreateEmpty<ReadOnlyMemory<char>>(featureLength);
Standard\Online\LinearSvm.cs (1)
150_weightsUpdate = VBufferUtils.CreateEmpty<float>(numFeatures);
Standard\Online\OnlineLinear.cs (1)
172Weights = VBufferUtils.CreateEmpty<float>(numFeatures);
Microsoft.ML.Transforms (2)
KeyToVectorMapping.cs (1)
302namesSlotSrc = VBufferUtils.CreateEmpty<ReadOnlyMemory<char>>(srcVectorSize);
PermutationFeatureImportance.cs (1)
60slotNames = VBufferUtils.CreateEmpty<ReadOnlyMemory<char>>(numSlots);