eamid / trimap

TriMap: Large-scale Dimensionality Reduction Using Triplets
Apache License 2.0
304 stars 20 forks source link

Replace Yinit check to remove SyntaxWarning #19

Closed evanroyrees closed 2 years ago

evanroyrees commented 2 years ago

These changes are made to fix the python SyntaxWarning.

During trimap installation, the following SyntaxWarnings are emitted:

/opt/conda/lib/python3.8/site-packages/trimap/trimap_.py:591: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if Yinit is None or Yinit is "pca":
/opt/conda/lib/python3.8/site-packages/trimap/trimap_.py:596: SyntaxWarning: "is" with a literal. Did you mean "=="?
  elif Yinit is "random":
eamid commented 2 years ago

Thank you, Evan!