26 references to Swap
Microsoft.ML.Core (2)
Utilities\Utils.cs (2)
43Swap(ref a[iMin++], ref a[iLim]); 550Swap(ref rgv[iv], ref rgv[iv + rand.Next(rgv.Length - iv)]);
Microsoft.ML.Core.Tests (4)
UnitTests\TestVBuffer.cs (4)
945Utils.Swap(ref a, ref dst); 1114Utils.Swap(ref a, ref b); 1133Utils.Swap(ref a, ref b); 1156Utils.Swap(ref a, ref b);
Microsoft.ML.Data (3)
Transforms\ValueToKeyMappingTransformer.cs (2)
625Utils.Swap(ref trainerInfo[t], ref trainerInfo[tmin]); 626Utils.Swap(ref trainer[t], ref trainer[tmin++]);
Utilities\SlotDropper.cs (1)
107Utils.Swap(ref src, ref dst);
Microsoft.ML.KMeansClustering (6)
KMeansPlusPlusTrainer.cs (6)
418Utils.Swap(ref cursor.Features, ref candidate); 894Utils.Swap(ref roundSamples[i], ref clusters[clusterCount]); 1007Utils.Swap(ref centroids[i], ref outCentroids[i]); 1229Utils.Swap(ref centroids[i], ref Centroids[i]); 1648Utils.Swap(ref wRow.Point, ref point); 1682Utils.Swap(ref row.Point, ref dst[i]);
Microsoft.ML.Mkl.Components (1)
ComputeLRTrainingStdThroughHal.cs (1)
48Utils.Swap(ref hessian, ref invHessian);
Microsoft.ML.StandardTrainers (7)
LdSvm\LdSvmTrainer.cs (2)
538Utils.Swap(ref _indices[k], ref _indices[randIdx]); 627Utils.Swap(ref _indices[k], ref _indices[randIdx]);
Optimizer\Optimizer.cs (2)
370Utils.Swap(ref _x, ref _newX); 371Utils.Swap(ref _grad, ref _newGrad);
Optimizer\SgdOptimizer.cs (2)
210Utils.Swap(ref avg, ref prev); 223Utils.Swap(ref x, ref prev);
Standard\LogisticRegression\LbfgsPredictorBase.cs (1)
629Utils.Swap(ref _features[index], ref cursor.Features);
Microsoft.ML.Transforms (3)
Expression\LambdaBinder.cs (1)
1591Utils.Swap(ref dup1, ref dup2);
MissingValueDroppingTransformer.cs (2)
274Utils.Swap(ref src, ref dst); 318Utils.Swap(ref src, ref dst);