Weka Problems
Internal variables private
- Should have protected or package-level access
SparseInstance for Strings requires dummy at index 0
- Problem:
- Strings are mapped into internal indices to an array
- String at position 0 is mapped to value “0”
- When written out as SparseInstance, it will not be written (0 value)
- If read back in, first String missing from Instances
- Solution:
- Put dummy string in position 0 when writing a SparseInstance with strings
- Dummy will be ignored while writing, actual instance will be written properly