Neural Causal Regularization

NCR is a light‑weight Python library that implements the risk‑gap penalty for training deep models that generalise across distribution shifts. It ships with:

Why NCR?

Standard ERM fits average performance and often memorises spurious shortcuts. NCR adds an 1 penalty on the risk difference |R1 − R2| between environments, nudging the network toward features that are stable — typically the causal ones.

Get around

Use the sidebar (left) to jump to: