Skip to content

[multired.py] Bug in "compute_JSD_matrix" #4

@Sci-Robot

Description

@Sci-Robot

Hi @KatolaZ,

Firstly, thank you so much for releasing the source code of your excellent work. It's really useful and enlightening.

Describe the bug
While useing these scripts on my data, I got Jensen–Shannon distance bigger than 1, which woundn't be possible. So I went through the paper and code. Then I found the script multired.py line 283 to 286 inconsistent with the definition within subsection Jensen–Shannon distance between graphs, Structural reducibility of multilayer networks . I guess the comment line 281 and line 282 were the original code.

Also, the Von Neumann entropy is calculated using log base 2 in the papre, then the script multired.py line 163 uses base e.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions