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

Reduce peak memory usage of kfold_varsel() #419

Merged
merged 8 commits into from
May 25, 2023

Conversation

fweber144
Copy link
Collaborator

This (more precisely, commit e11edc7) reduces the peak memory usage of kfold_varsel() massively by avoiding that the output of select() and get_submodls() from all CV folds is stored in common (very large) objects (search_path_cv and submodls_cv). This movement of large portions of code should also be beneficial for a future parallelization across CV folds (because with this PR, we have all code that needs to be run on one worker within a single function) and in my opinion, it also enhances the readability of kfold_varsel().

The readability of kfold_varsel()-related functions is also enhanced by commits 23b274e to c64ac57 which are just refactoring commits.

@fweber144 fweber144 merged commit fb681fc into stan-dev:master May 25, 2023
@fweber144 fweber144 deleted the kfold_memory branch May 25, 2023 08:59
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.

None yet

1 participant