Fix clusterless decoder index lookup and clean up unused code - #7
Fix clusterless decoder index lookup and clean up unused code#7CommanderPho wants to merge 1 commit into
Conversation
Co-authored-by: CommanderPho <962210+CommanderPho@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
Reviewer's guide (collapsed on small PRs)Reviewer's GuideFixes incorrect posterior index-to-position mapping for F-ordered PfND grids and removes now-unnecessary clusterless decoder setup and unused metadata access, relying instead on ClusterlessRTCPositionDecoder abstractions. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- The comment
# pos_sampling_rate_Hz removedinbuild_clusterless_training_data_from_pfndis a bit confusing; if the value is no longer needed, consider removing the line entirely or replacing it with a more descriptive comment about how sampling rate is now determined. - Given the subtlety around F-order reshaping and flat index decoding in
most_likely_positions_from_posterior, consider adding a brief comment or small helper function documenting the assumed memory order so future changes to reshaping logic don’t accidentally break the indexing again.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- The comment `# pos_sampling_rate_Hz removed` in `build_clusterless_training_data_from_pfnd` is a bit confusing; if the value is no longer needed, consider removing the line entirely or replacing it with a more descriptive comment about how sampling rate is now determined.
- Given the subtlety around F-order reshaping and flat index decoding in `most_likely_positions_from_posterior`, consider adding a brief comment or small helper function documenting the assumed memory order so future changes to reshaping logic don’t accidentally break the indexing again.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
most_likely_positions_from_posteriorwhere the indexing logic incorrectly used C-style indexing when the tensor was previously reshaped using F-style ordering..metadata.metadataretrieval logic inbuild_clusterless_training_data_from_pfndthat assigned to an unused variable.ClusterlessClassifierfrom_perform_clusterless_position_decoding_computation, as it is fully abstracted insideClusterlessRTCPositionDecoderinitialization and.compute_all().PR created automatically by Jules for task 1929046915036150442 started by @CommanderPho
Summary by Sourcery
Fix clusterless position decoding bugs and remove redundant legacy code related to training data and decoder initialization.
Bug Fixes:
Enhancements: