scipy.io.arff.
元数据#
- class scipy.io.arff.MetaData(rel, attr)[源]#
一个用于存储 ARFF 数据集有用信息的小型容器。
了解属性的名称和类型。
方法
备注
它还按顺序维护属性列表,例如,当 meta 是 MetaData 的实例时,执行 for i in meta 将按属性定义的顺序返回不同的属性名称。
示例
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()