haifengl / smile

Statistical Machine Intelligence & Learning Engine
https://haifengl.github.io
Other
5.97k stars 1.13k forks source link

Arff.java writeField can fail when type isn't in the list of handled types #751

Closed salamanders closed 10 months ago

salamanders commented 10 months ago

Noticed an exported ARFF file with two @ATTRIBUTE on the same line.

Traced it to Arff.writeField, which doesn't handle all possible types. Maybe a switch would be better, or an "else" at the end? (The unhandled type was Boolean)

haifengl commented 10 months ago

Thanks for debugging. The fix is in master branch now.