class, attr)[source]

Small container to keep useful informations on a ARFF dataset.

Knows about attributes names and types.


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.


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
# Getting attribute type
types = meta.types()


names() Return the list of attribute names.
types() Return the list of attribute types.