-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add binom factor notebook #123
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
@@ -0,0 +1,521 @@ | |||
{ |
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.
Line #5. print("# AUTOGENERATED from notebooks/binom_factor_table.ipynb", file=f)
I think the linters are complaining as this doesn't have a copyright and fails the black formatter. Could you try changing this to:
print("# Copyright (c) 2023 Graphcore Ltd. All rights reserved.", file=f)print("# AUTOGENERATED from notebooks/binom_factor_table.ipynb", file=f)
print("# fmt: off", file=f)
Reply via ReviewNB
Neat solution, I remembered another reference that has a derivation for the binomial factor: http://arxiv.org/abs/2007.12057 I think the double summation in 2.45 might be useful comparison here |
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.
🚢
The function called "binom factor" is one of those with a variable-sized loop,
which is tricky to vectorize. This notebook shows a strategy that might be helpful.