feat: Add synthetic importance audit scripts for connectome, GLM, LAS…#1
feat: Add synthetic importance audit scripts for connectome, GLM, LAS…#1colehanan1 merged 1 commit intomainfrom
Conversation
…SO, and Shapley methods
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughFour new synthetic validation audit scripts verify invariants of importance computation methods across connectome, GLM, LASSO, and Shapley implementations. Each script constructs controlled test scenarios, computes results, and validates permutation stability and correctness properties. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
✨ Finishing touches
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (4)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…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.