Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variationally Informed Parameterization: Recreate VIP class #367

Open
ferrine opened this issue Jul 24, 2024 · 0 comments
Open

Variationally Informed Parameterization: Recreate VIP class #367

ferrine opened this issue Jul 24, 2024 · 0 comments
Labels
enhancements New feature or request

Comments

@ferrine
Copy link
Member

ferrine commented Jul 24, 2024

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__"
        ...
@ferrine ferrine added the enhancements New feature or request label Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancements New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant