In keras documentation, it is mentioned that "categorical": 2D numpy array of one-hot encoded labels. Supports multi-label output. but in my case, it does not support.
train_generator_1 = train_data_gen.flow_from_dataframe(annotation,
directory="data",
target_size=(img_shape,img_shape),
x_col="Left",
y_col=['N','D','G','C','A','H','M','O'],
class_mode='categorical',
shuffle=False,
batch_size=batch_size,
seed=7)
The picture of labels is attached.
Error i am getting is TypeError: If class_mode="categorical", y_col="['N', 'D', 'G', 'C', 'A', 'H', 'M', 'O']" column values must be type string, list or tuple.
