RandomEMAssignment#
- class sdm.prior.RandomEMAssignment(p: HP[float] | float, q: HP[float] | float, bandwidth: HP[float] | float | None = None, m: HP[int] | int | None = None, linear: RandomLinear | None = None)#
Bases:
RandomFunctionCompute random soft cluster assignments and project them.
- Parameters:
q (HP[float] | float) – Exponent applied to the normalized distance.
bandwidth (HP[float] | float | None) – Log-scale spread of cluster widths; defaults to a correlated uniform draw between zero and one.
m (HP[int] | int | None) – Number of cluster centers. Defaults to
LogUniformInt(2, max(16, 2 * out_channels)).linear (RandomLinear | None) – Random linear function applied after softmax. Defaults to
RandomLinear.