bundles / scipy 1.18.0 / scipy / io / arff / _arffread / MetaData
class
scipy.io.arff._arffread:MetaData
source: /scipy/io/arff/_arffread.py:667
Signature
class MetaData(rel, attr)Members
Summary
Small container to keep useful information on an ARFF dataset.
Extended Summary
Knows about attributes names and types.
Parameters
rel: strName of the relation.
attr: list of AttributeAttributes of the dataset.
Methods
namestypes
Notes
Also maintains the list of attributes in order, i.e., doing for i in meta, where meta is an instance of MetaData, will return the different attribute names in the order they were defined.
Examples
:: data, meta = loadarff('iris.arff') # This will print the attributes names of the iris.arff dataset for i in meta: print(i) # This works too meta.names() # Getting attribute type types = meta.types()Aliases
scipy.io.arff.MetaData