higra / Higra

Hierarchical Graph Analysis
Other
98 stars 20 forks source link

bug with assess_fragmentation_optimal_cut #185

Closed PerretB closed 4 years ago

PerretB commented 4 years ago

Under colab, assess_fragmentation_optimal_cut will return incorrect results (all scores at 0, sometimes nan) if the given ground-truth labelling does not start at 0.

Temporary workaround: ensure that ground-truth labeling use labels from 0 to n-1 with n the number of different regions in the labelling.