Module: Rarff

Defined in:
lib/rarff.rb

Defined Under Namespace

Classes: Attribute, Relation

Constant Summary collapse

COMMENT_MARKER =
'%'
RELATION_MARKER =
'@RELATION'
ATTRIBUTE_MARKER =
'@ATTRIBUTE'
DATA_MARKER =
'@DATA'
SPARSE_ARFF_BEGIN =
'{'
ESC_SPARSE_ARFF_BEGIN =
'\\' + SPARSE_ARFF_BEGIN
SPARSE_ARFF_END =
'}'
ESC_SPARSE_ARFF_END =
'\\' + SPARSE_ARFF_END
ATTRIBUTE_NUMERIC =
'NUMERIC'
ATTRIBUTE_REAL =
'REAL'
ATTRIBUTE_INTEGER =
'INTEGER'
ATTRIBUTE_STRING =
'STRING'
ATTRIBUTE_DATE =
'DATE'
ATTRIBUTE_BOOLEAN =

Model Boolean as a Nominal Attribute. Use true not false because then in visualisations in Weka true is to the right, which makes more intuitive sense

'{false, true}'
MISSING =
'?'