From ea41fb0f0a23e1212d5f559a4f6fcc1ee614aca3 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 7 Sep 2026 16:53:15 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.15.14 → v0.16.6](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.14...v0.16.6) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e22c34319..3319db350 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,7 +10,7 @@ repos: - id: debug-statements - id: requirements-txt-fixer - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.15.14" + rev: "v0.16.6" hooks: - id: ruff-format - repo: local From 557eceae2830f5fa5949722479f986e846ca8c2f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 7 Sep 2026 16:53:24 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- CHANGELOG.md | 4 +++- README.md | 13 +++++++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 14d0b903b..3c21166ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -474,7 +474,9 @@ Expect similar or slightly slower training times due to interactions. from interpret.version import __version__ # Change this to your custom CDN. - JS_URL = "https://unpkg.com/@interpretml/interpret-inline@{}/dist/interpret-inline.js".format(__version__) + JS_URL = "https://unpkg.com/@interpretml/interpret-inline@{}/dist/interpret-inline.js".format( + __version__ + ) set_visualize_provider(InlineProvider(js_url=JS_URL)) ``` - EBM has changed initialization parameters: diff --git a/README.md b/README.md index 5d96e267e..fd8abd591 100644 --- a/README.md +++ b/README.md @@ -107,12 +107,17 @@ show([logistic_regression_global, decision_tree_global]) If you need to keep your data private, use Differentially Private EBMs (see [DP-EBMs](https://proceedings.mlr.press/v139/nori21a/nori21a.pdf)) ```python -from interpret.privacy import DPExplainableBoostingClassifier, DPExplainableBoostingRegressor - -dp_ebm = DPExplainableBoostingClassifier(epsilon=1, delta=1e-5) # Specify privacy parameters +from interpret.privacy import ( + DPExplainableBoostingClassifier, + DPExplainableBoostingRegressor, +) + +dp_ebm = DPExplainableBoostingClassifier( + epsilon=1, delta=1e-5 +) # Specify privacy parameters dp_ebm.fit(X_train, y_train) -show(dp_ebm.explain_global()) # Identical function calls to standard EBMs +show(dp_ebm.explain_global()) # Identical function calls to standard EBMs ```