Skip to content

Commit

Permalink
Fix deprecation warning force_all_finite -> ensure_all_finite
Browse files Browse the repository at this point in the history
  • Loading branch information
icarosadero authored Dec 17, 2024
1 parent 9e14790 commit aaf912f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cebra/integrations/sklearn/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def check_input_array(X: npt.NDArray, *, min_samples: int) -> npt.NDArray:
dtype=("float16", "float32", "float64"),
order=None,
copy=False,
force_all_finite=True,
ensure_all_finite=True,
ensure_2d=True,
allow_nd=False,
ensure_min_samples=min_samples,
Expand Down Expand Up @@ -112,7 +112,7 @@ def check_label_array(y: npt.NDArray, *, min_samples: int):
dtype="numeric",
order=None,
copy=False,
force_all_finite=True,
ensure_all_finite=True,
ensure_2d=False,
allow_nd=False,
ensure_min_samples=min_samples,
Expand Down

0 comments on commit aaf912f

Please sign in to comment.