Transform the predicted values to numeric classes.