Skip to content

🛡️ Catch flipped labels, temporal leaks & causal biases before they kill your fraud/marketing models

License

Notifications You must be signed in to change notification settings

kbp4154/causalguard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CausalGuard 🛡️

The data quality guardian for causal inference & fraud detection
Catch flipped labels, temporal leaks, and causal biases before they destroy your model — in 5 lines of code.

PyPI Downloads License: MIT GitHub stars

CausalGuard in action

The bugs that quietly kill 40–60% of fraud & marketing models:

  • first_purchase_ts < signup_ts in 38% of rows
  • Flipped fraud labels from bad annotation
  • Treatment applied before user even existed
  • Collider bias opening backdoor paths
  • Silent distribution shift in causal features

I’ve personally lost months and millions because of these. Never again.

One-liner that saves you:

from causalguard import CausalGuard

report = CausalGuard(preset="fraud").scan(df)
report.show()  # → instant beautiful HTML report with fixes

About

🛡️ Catch flipped labels, temporal leaks & causal biases before they kill your fraud/marketing models

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages