# NOT RUN {
if (requireNamespaces("reticulate")) {
build_pytorch_net(4L, 2L, nodes = c(32, 64, 32), activation = "selu")
# pass parameters to activation and initializer functions
build_pytorch_net(4L, 2L, activation = "elu", act_pars = list(alpha = 0.1),
init = "kaiming_uniform", init_pars = list(mode = "fan_out"))
}
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab