Skip to content

Commit 310a9ae

Browse files
committed
Rerun with numpy-1.23.5
1 parent 7e3bf47 commit 310a9ae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

alibi_detect/cd/sklearn/classifier.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def _score_rf(self, x: Union[np.ndarray, list]) \
300300
if isinstance(x, np.ndarray):
301301
x_oob = x[idx_oob]
302302
elif isinstance(x, list):
303-
x_oob = [x[_] for _ in idx_oob] # type: ignore[assignment]
303+
x_oob = [x[_] for _ in idx_oob]
304304
else:
305305
raise TypeError(f'x needs to be of type np.ndarray or list and not {type(x)}.')
306306
# comparison due to ordering in get_split (i.e, x = [x_ref, x])

alibi_detect/utils/perturbation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def apply_mask(X: np.ndarray,
8282
if mask_type == 'zero':
8383
update_val = 0
8484
else:
85-
update_val = noise[_] # type: ignore[assignment]
85+
update_val = noise[_]
8686

8787
for c in channels:
8888
mask[

0 commit comments

Comments
 (0)