Skip to content

Commit d3b3247

Browse files
committed
Fix import issues
1 parent 842e623 commit d3b3247

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
*.pyc
22
*.swp
33
.ipynb_checkpoints/
4+
.venv

mglearn/datasets.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def make_forge():
1313
# a carefully hand-designed dataset lol
1414
X, y = make_blobs(centers=2, random_state=4, n_samples=30)
1515
y[np.array([7, 27])] = 0
16-
mask = np.ones(len(X), dtype=np.bool)
16+
mask = np.ones(len(X), dtype=np.bool_)
1717
mask[np.array([0, 1, 5, 26])] = 0
1818
X, y = X[mask], y[mask]
1919
return X, y

0 commit comments

Comments
 (0)