Skip to content

Implement univariate combinations for distributions.py using * and | #60

Closed
@fsaad

Description

So that in SPML, we can write:

GPA ~ 0.3*Uniform(0,1) | 0.7*Bernoulli(p=.8)

We could of course preprocessing this expression to:

Z ~ bernoulli(p=0.3)
if Z:
    GPA ~ Uniform(0,1)
else:
    GPA ~ Bernoulli(p=.8)

but the direct interpretation will be simpler and faster.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions