Skip to content

Commit 6044bd4

Browse files
mmschlkclaude
andauthored
Docs: use California housing in the LightGBM example instead of OpenML (#635)
The TreeSHAP-IQ LightGBM example was the only gallery example that downloaded from openml.org (bike_sharing, OpenML 42713). When OpenML is down, the docs build hangs for about 11 minutes and fails. California housing comes through scikit-learn like the other examples' data, and the dataset makes no difference to what the example shows. Claude-Session: https://claude.ai/code/session_01RnsfebDN1vM8NKNqVXoAfH Co-authored-by: Maximilian Muschalik <noreply@anthropic.com>
1 parent 7c6e8b0 commit 6044bd4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎examples/trees/plot_treeshapiq_lightgbm.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
=========================
44
55
This example demonstrates :class:`~shapiq.explainer.TreeExplainer` on a LightGBM model trained on
6-
the bike-sharing dataset: exact Shapley values and interactions of a tree ensemble, without
6+
the California housing dataset: exact Shapley values and interactions of a tree ensemble, without
77
sampling.
88
99
The explainer computes any-order Shapley interactions for tree ensembles, as introduced by
@@ -25,7 +25,7 @@
2525
# Load Data and Train Model
2626
# --------------------------
2727

28-
dataset = load_dataset("bike_sharing")
28+
dataset = load_dataset("california_housing")
2929
X, y, feature_names = dataset.x, dataset.y, list(dataset.feature_names)
3030
X_train, X_test, y_train, y_test = train_test_split(
3131
X,

0 commit comments

Comments
 (0)