I have a problem with data types. My model is densenet169 for image classification in Histopathologic Cancer Detection Kaggle competition. I can’t use default accuracy metrics due to an error.
Are you sure your data has been properly interpreted by the fastai library? From this error it looks like it believes you are in a multi-class problem. Could you give us the code on how you create your DataBunch?
It’s working now! Thank you @sgugger for your help. After your suggestion that there’s something wrong with data, I checked it and found small error: label_from_df(sep=','). Now I realize it’s from df not csv. I overlooked it.
I still don’t understand why this separator made my data multi-class. And how did you found this clue in my error?