CategoricalConverter#
- class sdm.prior.CategoricalConverter#
Bases:
ABCBase class for converting latent channels to categorical columns.
- abstractmethod forward(slices: Tensor, generator: Generator | None = None) tuple[Tensor, Tensor]#
Return category indices and slices passed to child nodes.
- Parameters:
- Returns:
Category indices with shape
[C, R]and updated node-channel slices with the input shape for use by child nodes.- Return type: