I think I found a solution.
The training set and the test set must be equal: the same title, the same attribute name, the same order. Changes only numbers. And the question arises: why do I need to put the class in a test suite if I do not know it, and that is exactly what I want to get? This method seems to need it, but when you look at classModel.distributionForInstance(dataModel.instance(0)) , it gives you a prediction on your classes with a double array. Thus, you need to put some class values โโin a test case, and then 'distributionForInstance' gives you the real result for your classes.
Txus lopez
source share