View source: R/helpers_pycox.R
get_pycox_init | R Documentation |
Helper function to return a character string with a populated pytorch weight
initializer method from torch.nn.init
. Used in build_pytorch_net to define a weighting
function.
get_pycox_init(
init = "uniform",
a = 0,
b = 1,
mean = 0,
std = 1,
val,
gain = 1,
mode = c("fan_in", "fan_out"),
non_linearity = c("leaky_relu", "relu")
)
init |
|
a |
|
b |
|
mean , std |
|
val |
|
gain |
|
mode |
|
non_linearity |
|
Implemented methods (with help pages) are
"uniform"
reticulate::py_help(torch$nn$init$uniform_)
"normal"
reticulate::py_help(torch$nn$init$normal_)
"constant"
reticulate::py_help(torch$nn$init$constant_)
"xavier_uniform"
reticulate::py_help(torch$nn$init$xavier_uniform_)
"xavier_normal"
reticulate::py_help(torch$nn$init$xavier_normal_)
"kaiming_uniform"
reticulate::py_help(torch$nn$init$kaiming_uniform_)
"kaiming_normal"
reticulate::py_help(torch$nn$init$kaiming_normal_)
"orthogonal"
reticulate::py_help(torch$nn$init$orthogonal_)
No return value.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.