build_dnn: Build a Deep Neural Network for Survival Analysis
Description
Constructs a multilayer perceptron (MLP) with batch normalization,
activation functions, and dropout. Used internally by [survdnn()] to
define the model architecture.
A `nn_sequential` object representing the network.
Arguments
input_dim
Integer. Number of input features.
hidden
Integer vector. Sizes of the hidden layers (e.g., c(32, 16)).
activation
Character. Name of the activation function to use in each layer.
Supported options: `"relu"`, `"leaky_relu"`, `"tanh"`, `"sigmoid"`, `"gelu"`, `"elu"`, `"softplus"`.