Join GitHub today
Reading empty (no data) arff file fails #5276
Although many people would find pointless to read an empty arff dataset, it can be used as an standard format to store a dataset metadata.
I came across this error when trying to replicate some code I've developed in weka, as in the original software empty arff are allowed to be read.
Trying to load this file:
Results in the following error:
This is not an unreasonable request, but I don't know how soon someone will get around to fixing it.
If the code is changed to handle an empty data section, the returned array should be an array with length 0 and with the same data type that it would have had if there had been data. For example, with the following file (
When the file with an empty data section is read,