Skip to content

Fix powerset sampling#181

Merged
mdbenito merged 4 commits into
developfrom
fix/subset-sampling
Nov 4, 2022
Merged

Fix powerset sampling#181
mdbenito merged 4 commits into
developfrom
fix/subset-sampling

Conversation

@mdbenito
Copy link
Copy Markdown
Collaborator

@mdbenito mdbenito commented Nov 3, 2022

This pr undoes all the weird shit I did to sample from a powerset (wtf was all that about??) and changes the test to do something more natural to me, which is to check the frequencies at which elements (roughly 2**-n) and at which subset sizes (roughly comb(n,k) appear.

I also removed the distribution parameter because it was not being used and all MC sums use a uniform distribution. I know we have #121 but I think we can add any arguments / methods / classes later if needed.

@mdbenito mdbenito added bug Something isn't working cleanup when code is ugly or unreadable and needs restyling labels Nov 3, 2022
@mdbenito mdbenito requested a review from Xuzzo November 3, 2022 22:58
@mdbenito mdbenito self-assigned this Nov 3, 2022
@mdbenito mdbenito requested review from AnesBenmerzoug and removed request for AnesBenmerzoug November 3, 2022 23:00
@AnesBenmerzoug
Copy link
Copy Markdown
Collaborator

I had a quick look at the changes and this looks good to me.

It's only missing an entry in the changelog.

@mdbenito mdbenito merged commit 63b9171 into develop Nov 4, 2022
@mdbenito mdbenito deleted the fix/subset-sampling branch November 4, 2022 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working cleanup when code is ugly or unreadable and needs restyling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants