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

feat: model wrappers and AutoCache #117

Merged
merged 1 commit into from
Jun 25, 2024
Merged

feat: model wrappers and AutoCache #117

merged 1 commit into from
Jun 25, 2024

Conversation

fjebaker
Copy link
Owner

Added a new abstract type for creating model wrappers. These are models which wrap other models without introducing new parameters, but can change the way the underlying model is used.

One example of this is included: AutoCache, which caches the last output of the model and returns the cached output if the parameters have all changed by less than some absolute tolerance. This can save the number of calls to expensive models where the parameter space is not changing by much, and speedup fits.

Added a new abstract type for creating model wrappers. These are models
which wrap other models without introducing new parameters, but can
change the way the underlying model is used.

One example of this is included: `AutoCache`, which caches the last
output of the model and returns the cached output if the parameters have
all changed by less than some absolute tolerance. This can save the
number of calls to expensive models where the parameter space is not
changing by much, and speedup fits.
@fjebaker fjebaker merged commit c336468 into main Jun 25, 2024
1 check passed
@fjebaker fjebaker deleted the fergus/wrappers branch June 25, 2024 15:51
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

Successfully merging this pull request may close these issues.

1 participant