NaturalPosteriorNetworkRepresentation

class probly.method.natural_posterior_network.NaturalPosteriorNetworkRepresentation(*args, **kwargs)[source]

Bases: Representation, Protocol

Pseudo-representation type marking outputs of the Natural Posterior Network method.

A pure marker protocol used to route decompose() to a NatPN-specific decomposition. Constructed via NaturalPosteriorNetworkRepresentation.register_factory() on the NaturalPosteriorNetworkRepresenter’s represent method, which marks the underlying DirichletDistribution instance so it is recognised as a NatPN representation by the dispatch chain.