Hi,

We’re experiencing strange behavior while using Weka Java implementation classifiers (say J48 for example).

  • We build a classifier
  • Test it on examples, getting results A
  • Saving the classifier to the disk
  • Reading the classifier from disk
  • Testing the classifier on the same examples, receiving results B (when A!=B)
  • We checked the Weka instances one against the other and they perfectly match. So does the classifier (before we write it to disc and after).

    We suspect the classifier serialization (when writing and reading from the disk) but couldn’t point the specific error generator.

     We also checked if maybe it’s a nominal String attributes issue, but using toLower().trim() on every possible String value didn’t solve it either.

    Any suggestions how to solve it?

    Thanks!

    Ori

    More Ori Abramovsky's questions See All
    Similar questions and discussions