categoryList preventing "average='binary' and defaulting to 'macro'

df just contains the Image name and its label (which is either 1 or 0) as followsAnnotation%202019-07-23%20172715

When creating the data as follows, it converts my labels from “0” and “1” to “Category 0” and “Category 1”.

This results in the "average=‘binary’ defaulting to ‘macro’

How would I resolve this?

What does data.classes give you. Looking at the source code, it looks like it thinks there are more than 2 classes. Also, what is the shape of a typical output of your model (run for instance learn.model(next(iter(data.train_dl))).shape) ? One of these things seems to be wrong here.