String attributes get lost when using sparse instances
From BioWeka
Contents |
[edit]
Circumstances
- Using XslXmlLoader on command line.
- The stylesheet outputs sparsed instances.
- The instances have one or more string attributes.
[edit]
Symptoms
- The values of the string attributes of the first instance get lost.
[edit]
Causes
- To output the instances in the sparsed ARFF format the
ArffSaverclass is used. As described on http://www.cs.waikato.ac.nz/~ml/weka/arff.html there is a problem with sparse instances and string attributes.
[edit]
Solutions
- Edit the XML file and add a dummy instance as the first instance.

