nilesh2797 / zestxml

This is the official codebase for KDD 2021 paper Generalized Zero-Shot Extreme Multi-Label Learning
BSD 3-Clause "New" or "Revised" License
22 stars 1 forks source link

SyntaxWarning: "is" with a literal. Did you mean "=="? (utils.py:132) #3

Open nwagner84 opened 2 years ago

nwagner84 commented 2 years ago

Hi,

I get an Python warning when running the metrics.py script.

$ python metrics.py DNB
/home/nico/projects/zestxml/utils.py:132: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if inv_prop_ is -1 : inv_prop_ = inv_prop

I'm using Python 3.8.12

$ python --version
Python 3.8.12

Maybe it's not relevant or just a minor thing.