RandomDiscretization#
- class sdm.prior.RandomDiscretization(num_centers: HP[int] | int, p: HP[float] | float, linear: RandomLinear | None = None)#
Bases:
RandomFunctionReplace each row with a linear transformation of its nearest center.
- Parameters:
num_centers (HP[int] | int) – Number of centers, capped at the row count.
linear (RandomLinear | None) – Random linear function. Defaults to
RandomLinear.