Skip to content
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
don't be strict on boundaries, mnist has constant features
  • Loading branch information
amueller committed Dec 3, 2019
commit 3f0fac11fbc1d6a5a3bb7ec63b8dbe1f51691baf
2 changes: 1 addition & 1 deletion openml/datasets/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ def _parse_data_from_arff(
elif attribute_dtype[column_name] in ('floating',
'integer'):
X_col = X[column_name]
if X_col.min() == 0 and X_col.max() == 255:
if X_col.min() >= 0 and X_col.max() <= 255:
X_col_uint = X_col.astype('uint8')
if (X_col == X_col_uint).all():
col.append(X_col_uint)
Expand Down