trained_classifier = Classifier(jobject=serialization.read("/home/smo_from_java.model"))I presume, that the trained model was generated with Weka 3.7.11 or earlier? There were some API changes in Weka which unfortunately results in incompatible models. We had the same problem here.
In a nutshell, you will have to use an older (and probably buggier version) of python-weka-wrapper or rebuild the models. We did the latter.
Cheers, Peter
Thanks Peter!
> I generated my java model with weka 3.6.12 so you're completely right. I'll do the latter as you mentioned. Thank you again.
Yes, python-weka-wrapper only ever worked with the 3.7.x branch of Weka.
Cheers, Peter