Skip to content

Variationally Informed Parameterization: Recreate VIP class #367

Open
@ferrine

Description

@ferrine

https://github.com/pymc-devs/pymc-experimental/blob/d50742d4394fc764cfc0824821b63c235575917c/pymc_experimental/model/transforms/autoreparam.py#L422

So far the VIP transform creates an object with lambdas for manipulation at application time. If any model transform is done later (do, cond), the object is no longer relevant. The idea is to write a helper function as:

class VIP:
    @classmethod
    def from_model(cls, model, var_names: list[str]) -> VIP:
        # Collect lambdas based on name pattern "name" -> f"{name}::lam_logit__"
        ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions