CorrelatedContext#
- class sdm.prior.CorrelatedContext(*, generator: Generator | None = None)#
Bases:
objectShare sampling parameters within a scope.
Numerical samplers reuse Beta parameters. Correlated mixtures reuse selection probabilities. Values and selected items can still differ between draws. Keys share parameters only within the same kind of sampling operation.
- Parameters:
generator (Generator | None) – Pseudorandom generator. Calls within the scope may omit it or pass the same object.
- params(key: Hashable, size: tuple[int, ...]) → tuple[Tensor, Tensor]#
Return the shared Beta parameters for a numerical sampler.