1. change the order of loss and misclass in pred.loss