Solved by ptrblck in post #2 
              
              
                A single-class classification wouldn’t make much sense, since your model wouldn’t learn anything and will just output a high probability for the single class. 
A “perfect” classifier would thus be: 
def predict():
    return 0

as no other class indices are valid. 
Assuming you are dealing with a bi…