14 references to NextSingle
Microsoft.ML.Core (2)
Utilities\Stats.cs (2)
205
float u = rand.
NextSingle
();
224
return (float)Math.Tan(Math.PI * (rand.
NextSingle
() - 0.5));
Microsoft.ML.KMeansClustering (1)
KMeansPlusPlusTrainer.cs (1)
415
host.Rand.
NextSingle
() < probabilityWeight / cumulativeWeight)
Microsoft.ML.LightGbm (2)
LightGbmTrainerBase.cs (2)
865
var prob = rand.
NextSingle
();
912
var prob = rand.
NextSingle
();
Microsoft.ML.StandardTrainers (9)
LdSvm\LdSvmTrainer.cs (6)
430
wInit.Values[j] = 2 * Host.Rand.
NextSingle
() - 1;
431
thetaPrimeInit.Values[j] = 2 * Host.Rand.
NextSingle
() - 1;
433
thetaInit.Values[j] = 2 * Host.Rand.
NextSingle
() - 1;
443
float bW = 2 * Host.Rand.
NextSingle
() - 1;
446
float bTP = 2 * Host.Rand.
NextSingle
() - 1;
459
float bT = 2 * Host.Rand.
NextSingle
() - 1;
Standard\LogisticRegression\LbfgsPredictorBase.cs (1)
331
initWeights[j] = InitWtsDiameter * (Host.Rand.
NextSingle
() - 0.5f);
Standard\Online\OnlineLinear.cs (2)
165
weightValues[i] = parent.OnlineLinearTrainerOptions.InitialWeightsDiameter * (parent.Host.Rand.
NextSingle
() - (float)0.5);
167
Bias = parent.OnlineLinearTrainerOptions.InitialWeightsDiameter * (parent.Host.Rand.
NextSingle
() - (float)0.5);