title: Compute class weight function issue in 'sklearn' library when used in 'Keras' classification (Python 3.8, only in VS code)
body: <p>The classifier script I wrote is working fine and recently added weight balancing to the fitting. Since I added the weight estimate function using 'sklearn' library I get the following error :</p>
  <pre><code>compute_class_weight() takes 1 positional argument but 3 were given
  </code></pre>
  <p>This error does not make sense per documentation. The script should have three inputs but not sure why it says expecting only one variable. Full error and code information is shown below. Apparently, this is failing only in VS code. I tested in the Jupyter notebook and working fine. So it seems an issue with VS code compiler. Any one notice? ( I am using Python 3.8 with other latest other libraries)</p>
  <pre><code>from sklearn.utils import compute_class_weight
  
  train_classes = train_generator.classes
  
  class_weights = compute_class_weight(
                                          &quot;balanced&quot;,
                                          np.unique(train_classes),
                                          train_classes                                                    
                                      )
  class_weights = dict(zip(np.unique(train_classes), class_weights)),
  class_weights
  </code></pre>
  <p>In Jupyter Notebook,</p>
  <p><a href="https://i.stack.imgur.com/r35GZ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/r35GZ.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/zBnqH.png" rel="noreferrer"><img src="https://i.stack.imgur.com/zBnqH.png" alt="enter image description here" /></a></p>