levels.class_pred function

Extract class_pred levels