get_predictions function

A classifier (CL) method to train the CL and return predictions