Training an image classifier using .fit_generator() or .fit() and passing a dictionary to class_weight= as an argument.
.fit_generator()
.fit()
class_weight=
I never go
instead of providing a dictionary
weights = {'0': 42.0, '1': 1.0}
i tried a list
weights = [42.0, 1.0]
and the warning disappeared.