I have a multi_class problem instead of multi_label problem and
I have a dataframe as follow .
and i want it to use in flow_from_dataframe
train_generator=train_data_gen.flow_from_dataframe(train_df,directory='directory',
target_size=(img_shape,img_shape),
x_col="image_id",
y_col=['healthy','multiple_diseases','rust','scab'],
class_mode='categorical',
shuffle=False,
subset='training',
batch_size=batch_size)
and i am getting following error
TypeError: If class_mode="categorical", y_col="['healthy', 'multiple_diseases', 'rust', 'scab']" column values must be type string, list or tuple.