pyhgf.utils.weight_initialisation.he_init#
- pyhgf.utils.weight_initialisation.he_init(n_parents, n_children, seed=None)[source]#
He / Kaiming normal initialisation.
Draws weights from \(\\mathcal{N}(0, \\sigma^2)\) where \(\\sigma = \\sqrt{2 / n_{\\text{parents}}}\). Designed for layers followed by ReLU activations.
- Parameters:
- Returns:
Weight vector of length
n_parents * n_children.- Return type: