Skip to content

Commit 70c9e04

Browse files
authored
retry sklearn datset downloads (#844)
1 parent 433ecc3 commit 70c9e04

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/events/scatter_hover_transforms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import pygfx
2525

2626
# get the dataset
27-
dataset = fetch_california_housing()
27+
dataset = fetch_california_housing(n_retries=5, delay=20)
2828
X_full, y = dataset.data, dataset.target
2929
feature_names = dataset.feature_names
3030

examples/machine_learning/covariance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from sklearn.preprocessing import StandardScaler
1515

1616
# load faces dataset
17-
faces = datasets.fetch_olivetti_faces()
17+
faces = datasets.fetch_olivetti_faces(n_retries=5, delay=20)
1818
data = faces["data"]
1919

2020
# sort the data so it's easier to understand the covariance matrix

0 commit comments

Comments
 (0)