RandomNN#
- class sdm.prior.RandomNN(num_layers: HP[int] | int, hidden_channels: HP[int] | int, activation: Activation, linear: RandomLinear | None = None)#
Bases:
RandomFunctionApply a random neural network.
- Parameters:
activation (Activation) – Activation applied between layers and, by random choice, before the first and after the last layer.
linear (RandomLinear | None) – Random linear function of each layer. Defaults to
RandomLinear.