I have a text classification dataset where I used dask parquet to save disk space, but run into the problem now when I want to split the dataset into train and test using dask_ml.model_selection.train_test_split
.
ddf = dd.read_parquet('/storage/data/cleaned')
y = ddf['category'].values
X = ddf.drop('category', axis=1).values
train, test = train_test_split(X, y, test_size=0.2)
Resulting in
TypeError: Cannot operate on Dask array with unknown chunk sizes.
Thanks for the help.