Fix hybrid decoder: remove det-ratio floor that killed high-dim models#67
Merged
iahncajigas merged 1 commit intomainfrom Mar 18, 2026
Merged
Fix hybrid decoder: remove det-ratio floor that killed high-dim models#67iahncajigas merged 1 commit intomainfrom
iahncajigas merged 1 commit intomainfrom
Conversation
…m models The determinant ratio sqrt(det(W_u))/sqrt(det(W_p)) in the Laplace approximation used max(..., 1e-15) as a denominator floor. For 6D state models the absolute determinant (~1e-46) falls far below this floor, artificially deflating the likelihood by ~8 orders of magnitude and preventing the filter from ever selecting the reach model. Compute the ratio as sqrt(det(W_u)/det(W_p)) instead, which cancels the absolute scale and matches MATLAB behavior exactly. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PPHybridFilterLinear(andPPHybridFilter) usedmax(sqrt(det(W_p)), 1e-15)as a denominator floorsqrt(det(W_p)) ≈ 1e-23, far below the1e-15floor — artificially deflating the reach model's likelihood by ~8 orders of magnitudesqrt(det(W_u) / det(W_p))directly, which cancels absolute scale and matches MATLAB exactlyTest plan
🤖 Generated with Claude Code