We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edfe180 commit 299da1dCopy full SHA for 299da1d
openml/datasets/dataset.py
@@ -415,7 +415,8 @@ def _encode_if_category(column):
415
elif array_format == "dataframe" and scipy.sparse.issparse(data):
416
return pd.SparseDataFrame(data, columns=attribute_names)
417
else:
418
- warn("Conversion criteria not satisfied. Returning input data.")
+ data_type = "sparse-data" if scipy.sparse.issparse(data) else "non-sparse data"
419
+ warn("Cannot convert {} to '{}'. Returning input data.".format(data_type, array_format))
420
return data
421
422
@staticmethod
0 commit comments