Skip to content

ENH: support non-overlapping switch logp with scaling on both branches #8050

@eclipse1605

Description

@eclipse1605

Extend the current implementation of logp to allow scaling on both branches:

y = switch(x > 0, a_pos * x, a_neg * x)

while preserving the key requirement that the branch images do not overlap, so the observed value implies which branch was taken, keep the existing design: if both branches are measurable, the switch logp should only gate between branch logps evaluated at value, and add runtime parameter checks to enforce the constraints.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions