Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mlxtend/utils/checking.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def check_Xy(X, y, y_int=True):
if not isinstance(y, np.ndarray):
raise ValueError("y must be a NumPy array. Found %s" % type(y))

if "int" not in str(y.dtype):
if y_int and "int" not in str(y.dtype):
raise ValueError(
"y must be an integer array. Found %s. "
"Try passing the array as y.astype(np.int_)" % y.dtype
Expand Down
Loading