
This function is used to generate random weights and biases using runif.
generateWeightsUniform(numUnits1, numUnits2,
weights.min = getParameter(".weights.min", -0.1, ...),
weights.max = getParameter(".weights.max", 0.1, ...), ...)
Number of units in the lower layer.
Number of units in the upper layer.
min
parameter to the runif function.
max
parameter to the runif function.
Additional parameters, used for parameter resolution.
Weight matrix.
Other weight generation functions: generateWeightsGlorotNormal
,
generateWeightsGlorotUniform
,
generateWeightsHeNormal
,
generateWeightsHeUniform
,
generateWeightsNormal
# NOT RUN {
data(iris)
model <- darch(Species ~ ., iris, generateWeightsFunction = "generateWeightsUniform",
weights.min = -.1, weights.max = .5)
# }
Run the code above in your browser using DataLab