Read an arff file.
The data is returned as a record array, which can be accessed much like a dictionary of numpy arrays. For example, if one of the attributes is called ‘pressure’, then its first 10 data points can be accessed from the data record array like so: data['pressure'][0:10]
Parameters : | f : file-like or str
|
---|---|
Returns : | data : record array
meta : MetaData
|
Raises : | `ParseArffError` :
NotImplementedError :
|
Notes
This function should be able to read most arff files. Not implemented functionality include:
It can read files with numeric and nominal attributes. It cannot read files with sparse data ({} in the file). However, this function can read files with missing data (? in the file), representing the data points as NaNs.