The factorised-noise transform of Fortunato et al. (2017).
Parameters
Unit Gaussian samples, any shape.
Returns
TensorThe same shape, magnitude-compressed with the sign kept.
Notes
Written out because noisy_linear applies it to both noise
vectors and the paper is explicit that the bias uses it too: "for
the bias we could have set , but we decided to keep
the same output noise for weights and biases."
Composed rather than fused, matching lucid.nn.functional.symlog
— the same shape, and the same
decision.
Examples
>>> import lucid
>>> from lucid.nn.functional import scaled_noise
>>> scaled_noise(lucid.tensor([-4.0, 0.0, 9.0]))
tensor([-2., 0., 3.])