You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bugfix in Modules/utils/utils.py in the plot_manual_graph function, switched indexing for nodes instead of hyperedges in incidence matrix results in too many added nodes and hence an out of index error. This error does not happen in the KNN given example, because the
number of hyperedges equals the number of nodes and hence doubles the number of nodes anyways. It occurs however, if the number of hyperedges is less then the number of nodes”
The text was updated successfully, but these errors were encountered:
Hello @mbanf,
thank you for bringing forward this issue. Could you give me an example in which the error arises? I tried removing and adding a hyperedge in the knn_lifting tutorial but I don't see any error. It is also worth noting that while there could be an error, your solution plots the incorrect bipartite graph.
This is the code I used to test the function with a different number of nodes (it can be pasted at the end of the knn_lifting tutorial notebook):
Hello @Coerulatus@mbanf,
I am working on the challenge also on a graph to hypergraph scenario and while I might have missed something, I made the same analysis. I think the indices should be switched. It is not seen as a bug on knn lifting because there is as many edges as nodes and if I remember correctly there is a bug in knn lifting also which makes the incidence hyperedge matrix the transpose of what it should be. If it is indeed correct to think that nodes should be rows and hyperedges columns then from my point of view the change makes sense.
These two inversions ie 1) in the plot function and 2) in the knn lifting code makes it confusing.
bugfix in Modules/utils/utils.py in the plot_manual_graph function, switched indexing for nodes instead of hyperedges in incidence matrix results in too many added nodes and hence an out of index error. This error does not happen in the KNN given example, because the
number of hyperedges equals the number of nodes and hence doubles the number of nodes anyways. It occurs however, if the number of hyperedges is less then the number of nodes”
The text was updated successfully, but these errors were encountered: