Skip to content

Commit 5f10d79

Browse files
APLR documentation (#658)
* reducing aplr chart resolution to reduce documentation size Signed-off-by: Mathias Ottenbreit <mathiasottenbreit@gmail.com> * documentation size reduction for aplr Signed-off-by: Mathias Ottenbreit <mathiasottenbreit@gmail.com> * documentation size reduction for aplr Signed-off-by: Mathias Ottenbreit <mathiasottenbreit@gmail.com> * documentation size reduction for aplr Signed-off-by: Mathias Ottenbreit <mathiasottenbreit@gmail.com> --------- Signed-off-by: Mathias Ottenbreit <mathiasottenbreit@gmail.com>
1 parent 51e9394 commit 5f10d79

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/interpret/aplr.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
" X, y, test_size=0.20, random_state=seed\n",
6060
")\n",
6161
"\n",
62-
"aplr = APLRClassifier(random_state=seed)\n",
62+
"aplr = APLRClassifier(random_state=seed, max_interaction_level=0)\n",
6363
"aplr.fit(X_train, y_train, X_names=X_train.columns)\n",
6464
"\n",
6565
"auc = roc_auc_score(y_test, aplr.predict_class_probabilities(X_test)[:, 1])\n",
@@ -93,7 +93,7 @@
9393
"source": [
9494
"<h2>Further Resources</h2>\n",
9595
"\n",
96-
"Below are more detailed code examples from the backing repository for APLR. This will also work when using APLR through `InterpretML` if you change `from aplr import` to `from interpret.glassbox import`. For better precision in global explanation plots you may consider using the plotting functionality in native APLR, introduced in APLR version 10.13.0.\n",
96+
"Below are more detailed code examples from the backing repository for APLR. This will also work when using APLR through `InterpretML` if you change `from aplr import` to `from interpret.glassbox import`. Larger models or those with complex interactions may load slowly in `explain_global()` or `explain_local()`. For these cases, or for better precision in global explanation plots, we recommend using the native plotting functionality introduced in APLR v10.13.0.\n",
9797
"- [Regression code example](https://github.com/ottenbreit-data-science/aplr/blob/main/examples/train_aplr_regression.py)\n",
9898
"- [Classification code example](https://github.com/ottenbreit-data-science/aplr/blob/main/examples/train_aplr_classification.py)"
9999
]

0 commit comments

Comments
 (0)