feat: Add synthetic importance audit scripts for connectome, GLM, LAS… #1
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.
…SO, and Shapley methods
This pull request adds a suite of synthetic audit scripts to verify invariants and correctness for multiple importance analysis methods in the codebase. Each script constructs controlled synthetic data and checks for expected behaviors, such as permutation invariance and correct identification of driver features, across different modeling approaches (GLM, LASSO, connectome, and Shapley-proxy). These tests help ensure the robustness and reliability of the importance computation logic.
Synthetic importance audit scripts:
importance_glm_synthetic.pyto audit GLM-based importance metrics, verifying driver receptor dominance and permutation invariance for weight and ablation scores.importance_lasso_synthetic.pyto audit LASSO regression importance, confirming correct identification of top receptors, permutation invariance, and sensitivity to label shuffling.importance_connectome_synthetic.pyto audit connectome amplification invariants, checking for amplification factor correctness and stability under receptor order permutations.importance_shapley_proxy_synthetic.pyto audit variance-based Shapley-proxy importance, ensuring output normalization and permutation invariance for odorant list order.Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.