-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
Batched Kalman Filters #450
base: main
Are you sure you want to change the base?
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Pushed latest progress: working with Filter, not yet with Smoother |
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.
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Comments suppressed due to low confidence (1)
conda-envs/environment-test.yml:20
- [nitpick] The pip dependency list appears to have a potentially misformatted entry ('- -e .'); please verify the correct YAML structure to ensure dependencies are installed as intended.
- -e .
assert 0 | ||
# outputs = filter_func(*inputs) | ||
|
||
for output_idx, name in enumerate(output_names): | ||
expected_output = get_expected_shape(name, p, m, r, n) | ||
assert ( | ||
outputs[output_idx].shape == expected_output | ||
), f"Shape of {name} does not match expected" | ||
expected_shape = get_expected_shape(name, p, m, r, n, batch_size) | ||
# assert outputs[output_idx].shape == expected_shape, ( | ||
# f"Shape of {name} does not match expected" | ||
# ) |
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.
A hard-coded 'assert 0' is present in the test_output_shapes_one_state_one_observed function, which forces the test to fail. Please remove this debugging placeholder to allow the test to run normally.
Copilot is powered by AI, so mistakes are possible. Review output carefully before use.
mus_, covs_ = mus.type(), covs.type() | ||
print(f"mus_.type.shape: {mus_.type.shape}, covs_.type.shape: {covs_.type.shape}") |
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.
Debug print statements remain in the rv_op function; consider removing them before merging to clean up output in production.
print(f"mus_.type.shape: {mus_.type.shape}, covs_.type.shape: {covs_.type.shape}") | |
# Debugging information removed or replaced with logging if necessary |
Copilot is powered by AI, so mistakes are possible. Review output carefully before use.
Add batch dimension feature to Kalman filters, to enable fitting multiple time series at the same time