YuanyueLi/SpectralEntropy

The cosine similarity between two identical spectrograms is not 1

sjsjsj25915302 opened this issue · 3 comments

I found that when calculating cosine similarity, the score for two identical spectrograms is not 1. After simple debugging, it was found that there seems to be an indentation error in line 173 of the tools.py file. Some code that seems to be in the while loop is not in the loop

Hi,

Could you share with me the raw spectrum data? So that I can debug it. Thanks.

Best,
Yuanyue

您好,非常感谢您的消息。您提到的问题的确是我代码中的一个bug,现在已经修复。欢迎下载最新的代码重新测试,如发现有其它的问题,欢迎提供进一步的反馈。

再次感谢您的评论,谢谢!