rashomon-py
Does your conclusion survive every equally-good model?
Many parameter vectors fit a dataset about as well as the one your solver returned (Breiman’s “Rashomon effect”). rashomon-py audits a fitted scikit-learn logistic or linear regression for this model multiplicity: which predictions would flip, how far each coefficient can move, and which signs every equally-good model agrees on.
from rashomon import audit
report = audit(model, X, y) # a fitted LogisticRegression / Ridge / LinearRegression or Pipeline
print(report.summary())
report.plot()
The \(\varepsilon\)-Rashomon set is \(\mathcal{R}_\varepsilon = \{\theta : L(\theta) \leq L(\hat\theta) + \varepsilon\}\). For convex losses with L2 regularization it is a convex sublevel set. The toolkit computes exact coefficient ranges over it by convex optimization, samples it with hit-and-run (plus ellipsoid proposals), and provides a Hessian-ellipsoid approximation for fast screening.
Getting Started
User Guide