-
Notifications
You must be signed in to change notification settings - Fork 50
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
Wrapper functions for Mamba models #105
Comments
Lots of different methods could be used for a wrapper. Your example code looks like a valid approach. I would say the "preferred" method is one that meets your design goals. Making a wrapper user-friendly so as to avoid interactions with Mamba internals is an understandable goal. In that case, you might consider moving the |
I would agree with Brian. For a function like |
Good suggestions. Thank you! |
Does this still work? I wanted to implement something like this, i.e. a simple wrapper that takes in some variables, constructs a model, and then returns the fitted model, but I keep getting errors like this:
|
What is the preferred method, if any, for writing wrapper functions for Mamba models?
Suppose I am developing a package and would like to include a function to perform Bayesian linear regression modeled after Mamba's Bayesian linear regression tutorial. Ideally, the function would not require the user to mess with the Mamba internals too much, but it should allow for specifying which parameters to monitor, say, or setting hyperparameters.
For example:
I suppose more advanced cases may require a metaprogramming approach, e.g., placing hyperpriors on the hyperparameters, but that seems overkill for this (admittedly bare-bones) example.
The text was updated successfully, but these errors were encountered: