-
-
Notifications
You must be signed in to change notification settings - Fork 252
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
Fix Minibatch alignment in Bayesian Neural Network example #689
base: main
Are you sure you want to change the base?
Fix Minibatch alignment in Bayesian Neural Network example #689
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
@yoshida-chem @twiecki please review waiting for your response |
Thanks @Deepakchowdavarapu! You need to run pre-commit locally so that the myst file is generated. |
@twiecki ok sure can you please assign this issue to me !!! |
There's no issue, on this PR you'd need to run |
pre-commit.ci autofix |
We might not have set that up here, but we should. Is pre-commit giving you problems? |
I will run it locally and raise a new PR soon. |
Fix Minibatch Alignment in Bayesian Neural Network Example
Issue
Fixes #654.
Description
This PR addresses the issue where
Minibatch
variables forX_train
andY_train
were created separately, causing potential misalignment in slices and thus random pairing ofX
with unrelatedy
.Changes Made
Minibatch
forX_train
andY_train
together, ensuring identical slices.ann_input
andann_output
using the unifiedMinibatch
variables.construct_nn
function.Impact
This change ensures that the model training process is more robust and prevents issues related to incorrect data alignment in minibatches.
Helpful links
📚 Documentation preview 📚: https://pymc-examples--689.org.readthedocs.build/en/689/