28 template<
typename Real_t>
37 for (
size_t i = 0; i <
m; i++) {
38 for (
size_t j = 0; j <
n; j++) {
40 if (r >= dropoutProbability) {
43 B(i,j) /= dropoutProbability;
This is the base class for the ROOT Random number generators.
virtual Double_t Uniform(Double_t x1=1)
Returns a uniform deviate on the interval (0, x1).
Abstract ClassifierFactory template that handles arbitrary types.
static void Dropout(TMatrixT< AReal > &A, AReal dropoutProbability)
Apply dropout with activation probability p to the given matrix A and scale the result by reciprocal ...