diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e22c34319..4677c884d 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.5" hooks: - id: ruff-format - repo: local 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 ```