本文简要介绍 python 语言中 scipy.io.arff.MetaData
的用法。
用法:
class scipy.io.arff.MetaData(rel, attr)#
用于在 ARFF 数据集上保存有用信息的小容器。
了解属性名称和类型。
注意:
还按顺序维护属性列表,即在 meta 中执行 for i,其中 meta 是 MetaData 的实例,将按照定义的顺序返回不同的属性名称。
例子:
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()
相关用法
- Python SciPy arff.loadarff用法及代码示例
- Python SciPy interpolate.make_interp_spline用法及代码示例
- Python SciPy stats.anderson用法及代码示例
- Python SciPy ClusterNode.pre_order用法及代码示例
- Python SciPy stats.iqr用法及代码示例
- Python SciPy FortranFile.read_record用法及代码示例
- Python SciPy ndimage.correlate用法及代码示例
- Python SciPy special.exp1用法及代码示例
- Python SciPy special.expn用法及代码示例
- Python SciPy signal.czt_points用法及代码示例
- Python SciPy interpolate.krogh_interpolate用法及代码示例
- Python SciPy ndimage.morphological_gradient用法及代码示例
- Python SciPy distance.sokalmichener用法及代码示例
- Python SciPy linalg.eigvalsh_tridiagonal用法及代码示例
- Python SciPy linalg.cdf2rdf用法及代码示例
- Python SciPy csc_array.diagonal用法及代码示例
- Python SciPy fft.idctn用法及代码示例
- Python SciPy linalg.LaplacianNd用法及代码示例
- Python SciPy linalg.solve_circulant用法及代码示例
- Python SciPy hierarchy.ward用法及代码示例
- Python SciPy signal.chirp用法及代码示例
- Python SciPy stats.genpareto用法及代码示例
- Python SciPy ndimage.variance用法及代码示例
- Python SciPy signal.residue用法及代码示例
- Python SciPy linalg.polar用法及代码示例
注:本文由纯净天空筛选整理自scipy.org大神的英文原创作品 scipy.io.arff.MetaData。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。