44 references to RandomUtils
Microsoft.ML.AutoML (1)
Experiment\Experiment.cs (1)
144_newContextSeedGenerator = (mainContextSeed.HasValue) ? RandomUtils.Create(mainContextSeed.Value) : null;
Microsoft.ML.Core (6)
Environment\HostEnvironmentBase.cs (6)
142Random rand = (seed.HasValue) ? RandomUtils.Create(seed.Value) : RandomUtils.Create(_rand); 376_rand = RandomUtils.Create(Seed); 394_rand = rand ?? RandomUtils.Create(); 421Random rand = (seed.HasValue) ? RandomUtils.Create(seed.Value) : RandomUtils.Create(_rand);
Microsoft.ML.Core.Tests (21)
UnitTests\TestVBuffer.cs (21)
45var rgen = RandomUtils.Create(9); 66var rgen = RandomUtils.Create(9); 87var rgen = RandomUtils.Create(42); 137var rgen = RandomUtils.Create(0); 160var rgen = RandomUtils.Create(0); 346var rgen = RandomUtils.Create(1); 388var rgen = RandomUtils.Create(2); 433var rgen = RandomUtils.Create(union ? 3 : 4); 484var rgen = RandomUtils.Create(5); 520var rgen = RandomUtils.Create(6); 573var rgen = RandomUtils.Create(7); 604var rgen = RandomUtils.Create(7); 626var rgen = RandomUtils.Create(8); 651var rgen = RandomUtils.Create(10); 678var rgen = RandomUtils.Create(11); 700var rgen = RandomUtils.Create(12); 725var rgen = RandomUtils.Create(13); 751var rgen = RandomUtils.Create(14); 781var rgen = RandomUtils.Create(15); 820var rgen = RandomUtils.Create(16); 846var rgen = RandomUtils.Create(16);
Microsoft.ML.Data (4)
DataView\AppendRowsDataView.cs (1)
325_cursorSet[i] = parent._sources[i].GetRowCursor(columnsNeeded, RandomUtils.Create(_rand));
DataView\TypedCursor.cs (1)
182Random rand = randomSeed.HasValue ? RandomUtils.Create(randomSeed.Value) : null;
Transforms\RowShufflingTransformer.cs (2)
276Random myRandom = rand ?? (shouldShuffleMe || shouldShuffleSource ? RandomUtils.Create(_forceShuffleSeed) : null); 279Random sourceRand = shouldShuffleSource ? RandomUtils.Create(myRandom) : null;
Microsoft.ML.FastTree (1)
TreeEnsembleFeaturizer.cs (1)
771int[] permutation = Utils.GetRandomPermutation(RandomUtils.Create(seed), type.GetCountAsInt32(env));
Microsoft.ML.KMeansClustering (1)
KMeansPlusPlusTrainer.cs (1)
1731Random rand = RandomUtils.Create(baseHost.Rand);
Microsoft.ML.Mkl.Components (1)
SymSgdClassificationTrainer.cs (1)
576_cursor = _cursorFactory.Create(RandomUtils.Create(host.Rand.Next()));
Microsoft.ML.StandardTrainers (4)
Standard\SdcaBinary.cs (2)
563rands[i] = RandomUtils.Create(Host.Rand.Next()); 2115rands[e - 1] = RandomUtils.Create(Host.Rand.Next());
Standard\Simple\SimpleTrainers.cs (2)
79_random = RandomUtils.Create(_seed); 96_random = RandomUtils.Create(_seed);
Microsoft.ML.TimeSeries (1)
PValueTransform.cs (1)
136_randomGen = RandomUtils.Create(_parent._seed);
Microsoft.ML.Transforms (4)
PermutationFeatureImportance.cs (1)
173var shuffleRand = RandomUtils.Create(host.Rand.Next());
RandomFourierFeaturizing.cs (3)
116_rand = seed.HasValue ? RandomUtils.Create(seed) : RandomUtils.Create(host.Rand); 301var rng = columns[i].Seed.HasValue ? RandomUtils.Create(columns[i].Seed.Value) : Host.Rand;