Skip to main content

Module arff

Module arff 

Source
Expand description

Attribute-Relation File Format (ARFF) files from Weka (SciPy’s io.arff.loadarff).

An ARFF file is text: @relation name, one @attribute name type line per column (numeric, real, integer, a nominal set {a, b, c}, string or date), then @data and one comma-separated row per instance, ? marking a missing value. Comments start with %.

See the book entry Scientific data files.

Structs§

Arff
The contents of an ARFF file.

Enums§

ArffType
The type of an ARFF attribute.
ArffValue
One value of a row.

Functions§

arff_decode
Parses an ARFF file (SciPy’s loadarff, which additionally rejects string attributes). Numeric values are f64, with missing values NaN; nominal values are checked against their declared set.
arff_encode
Writes an ARFF file (a dense data section; SciPy has no writer).
read_arff_file
Reads an ARFF file.