modified calker_train_all_random_classes