-
Notifications
You must be signed in to change notification settings - Fork 30
Update sampling algorithm #253
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
Conversation
…x intensity before selecting least resampled pair.
…quency, it cannot be predicted what the maximum save value is, it will break anyway after and it is generally faster to just run it than calculating the bin contents)
|
| self.val_spectra_per_inchikey = 1 | ||
| self.random_seed: Optional[int] = None | ||
| self.max_pair_resampling = 1 | ||
| self.max_pair_resampling = 10000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this high number?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@florian-huber Basically meant as infinite. As in there is no max. I noticed that the amount of resampling was never a lot. And any maximum imposed, could have quite bad effect on the balance of pairs selection. I will share the analysis that came to this conclusion later today.



Added a max inchikey sampling as setting
To make it a bit more consistent I changed average_pairs_per_bin to average_inchikey_sampling_count