Skip to content
This repository has been archived by the owner on Aug 18, 2023. It is now read-only.

QMHL #189

Merged
merged 6 commits into from
Feb 17, 2022
Merged

QMHL #189

merged 6 commits into from
Feb 17, 2022

Conversation

zaqqwerty
Copy link
Contributor

@zaqqwerty zaqqwerty commented Feb 17, 2022

Implements QMHL for the new QHBM structure.

Part of #140.

@farice one thing I couldn't resolve was the following: as I increase the number of samples at line 46 of qmhl_loss_test.py, line 269 starts to fail; for example, going from 1e6 to 1e7 samples causes the relative error to go to 0.065, whereas the tolerance is 0.02; and for 1e8 samples, relative error goes to 0.75

@zaqqwerty zaqqwerty mentioned this pull request Feb 17, 2022
@farice
Copy link
Contributor

farice commented Feb 17, 2022

what you describe could mean we over-flow somewhere, I think if things LG with a reasonable number of samples (<=1e6) then we can consider the PR WAI imo. However, we should open an issue to track down the specific cause post-release. I'll review the PR now

farice
farice previously approved these changes Feb 17, 2022
tests/qmhl_loss_test.py Outdated Show resolved Hide resolved
tests/qmhl_loss_test.py Outdated Show resolved Hide resolved
@zaqqwerty
Copy link
Contributor Author

Added #190. Also, what does WAI mean?

@farice
Copy link
Contributor

farice commented Feb 17, 2022

WAI = working as intended!

@zaqqwerty zaqqwerty merged commit 26d8b0d into google:main Feb 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants