title: How to use flow_from_dataframe with compute_class_weight?
body: <p>I want to validation classes weights adjustment but it show AttributeError: 'DataFrameIterator' object has no attribute 'shape'. I don't know how to fix this but I saw weight_col=None in the argument of flow_from_dataframe you can read in this <a href="https://keras.io/api/preprocessing/image/" rel="nofollow noreferrer">document</a> Not sure if the same or not?</p>
  
  <p><a href="https://i.stack.imgur.com/dBWig.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dBWig.png" alt="enter image description here"></a></p>