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

implementing a 'model' class #47

Open
clarkedavida opened this issue Sep 29, 2023 · 1 comment
Open

implementing a 'model' class #47

clarkedavida opened this issue Sep 29, 2023 · 1 comment

Comments

@clarkedavida
Copy link
Collaborator

clarkedavida commented Sep 29, 2023

maybe it would help with the statistics, fitting, etc routines to have a 'model' class. this class would be like a function, but the parmeters of the model would be an attribute. this way you can be really strict about the function signatures. this also means you wouldn't need to constantly specify params=... in these fit functions. you instead would only have to pass model=... and the fit function would figure out the rest

@clarkedavida
Copy link
Collaborator Author

you may need to do something like have 'parameter' objects that inherit from np.array or something. then you could do checkType(params,parameter) along with making sure the signature only has one argument to enforce the function has a particular form.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant