Closed young917 closed 1 year ago
We have contacted the authors and will look with them at your code. Will post when we have more information.
I have run into the same issue. If I run:
hnx.Hypergraph(edges, weights=[w1, w2, w3...])
the resulting hypergraph has all weights of 1.0
If I try the line that young917 suggested above, it doesn't work either.
This is a bug. We are working on it.
@thosvarley and @young917 HNX 2.0 will be released on Saturday May 13. You will add cell weights to the incidence matrix using the cell_weights keyword in the hypergraph constructor. Please read the documentation for formatting and let us know if anything is unclear.
Hello, thank you for sharing this excellent library.
I want to compare the performance of clustering on weighted and unweighted hypergraphs as described in K. Hayashi, S. Aksoy, C. Park, H. Park, "Hypergraph random walks, Laplacians, and clustering". I tried to do this based on Tutorial 11. However, I think some modifications need.
h = hnx.Hypergraph(hnx.StaticEntitySet(data=data, weights=w))
I think this code does not make a weighted hypergraph. Instead, this should be revised as below.h = hnx.Hypergraph(hnx.StaticEntitySet(data=data, weights=w), weights=w)
Additionally, I cannot get the satisfying result that weighted hypergraphs perform better than unweighted ones. Thus, I want to ask whether the below code is a correct way to make clustering on an unweighted hypergraph and evaluate clustering algorithms by NMI scores.