Skip to content

Add batching to constraint guesser#8

Open
sayeg84 wants to merge 2 commits into
noegroup:mainfrom
sayeg84:feat/batch_guess_constraints
Open

Add batching to constraint guesser#8
sayeg84 wants to merge 2 commits into
noegroup:mainfrom
sayeg84:feat/batch_guess_constraints

Conversation

@sayeg84
Copy link
Copy Markdown
Collaborator

@sayeg84 sayeg84 commented May 28, 2025

Currently, the constraint guesser works by computing all the pairwise distances between sites and checking if their standard deviation is above a certain threshold. This has a O(n_frames * n_sites^2) memory requirement, which breaks in any reasonable computer for a large enough system.

The current change introduces an optional integer argument called n_batches so that the n_sites are divided in n_batches groups and the constraints are guessed for those groups only. This makes feasible the treatment of larger systems.

Tested with a BBA simulation and the constraints are the same.

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