Take calculating of class values and postprocessing of data matrix outside of the predict module.