Skip to content

Commit

Permalink
Rerun with numpy-1.23.5
Browse files Browse the repository at this point in the history
  • Loading branch information
jklaise committed May 22, 2023
1 parent 7e3bf47 commit 310a9ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion alibi_detect/cd/sklearn/classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def _score_rf(self, x: Union[np.ndarray, list]) \
if isinstance(x, np.ndarray):
x_oob = x[idx_oob]
elif isinstance(x, list):
x_oob = [x[_] for _ in idx_oob] # type: ignore[assignment]
x_oob = [x[_] for _ in idx_oob]
else:
raise TypeError(f'x needs to be of type np.ndarray or list and not {type(x)}.')
# comparison due to ordering in get_split (i.e, x = [x_ref, x])
Expand Down
2 changes: 1 addition & 1 deletion alibi_detect/utils/perturbation.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def apply_mask(X: np.ndarray,
if mask_type == 'zero':
update_val = 0
else:
update_val = noise[_] # type: ignore[assignment]
update_val = noise[_]

for c in channels:
mask[
Expand Down

0 comments on commit 310a9ae

Please sign in to comment.