Skip to content

fix(causal): Use operator rho clamp and strict sanity check#4

Merged
DaviBonetto merged 1 commit intomainfrom
codex/fix/colab-causal-repro-notebook
Mar 17, 2026
Merged

fix(causal): Use operator rho clamp and strict sanity check#4
DaviBonetto merged 1 commit intomainfrom
codex/fix/colab-causal-repro-notebook

Conversation

@DaviBonetto
Copy link
Copy Markdown
Owner

Replace the causal-clamp proxy with an operator-level rho check in the dt hook, remove the hard per-channel floor that was over-constraining the intervention, and keep rho_current/rho_after explicit in the diagnostics.

This keeps the implementation aligned with the paper's clamp semantics and makes the Colab reproduction easier to verify with a strict sanity check.

Also adds focused smoke tests for dt_bias application, rho computation, and clamp monotonicity.

Replace the mean-channel proxy with an operator-level rho check, remove the hard per-channel floor, and keep the dt clamp monotonic with a strict post-check. Add focused smoke tests for bias handling and clamp behavior.
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 17, 2026

Warning

Rate limit exceeded

@DaviBonetto has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 6 minutes and 28 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 51071cb4-e8f9-4f37-a8ab-57171646abb3

📥 Commits

Reviewing files that changed from the base of the PR and between 650b878 and 1facc7e.

📒 Files selected for processing (2)
  • scripts/run_causal_intervention.py
  • tests/test_run_causal_intervention.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/fix/colab-causal-repro-notebook
📝 Coding Plan
  • Generate coding plan for human review comments

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@DaviBonetto DaviBonetto merged commit 8c87472 into main Mar 17, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant