Hi,
I have recently reinstalled my operating system and all python packages needed for the element-centric similarity score. When I rerun code that worked in my old setup I get an error.
line 977, in print_elementcentric_similarity
elsim = sim.element_sim(cinp, cout, r=r, alpha=alpha)
File "/home/robert/.local/lib/python3.10/site-packages/clusim/clusimelement.py", line 60, in element_sim
result_tuple = element_sim_elscore(clustering1, clustering2, alpha=alpha,
File "/home/robert/.local/lib/python3.10/site-packages/clusim/clusimelement.py", line 130, in element_sim_elscore
clu_affinity_matrix1 = make_affinity_matrix(clustering1, alpha=alpha, r=r,
File "/home/robert/.local/lib/python3.10/site-packages/clusim/clusimelement.py", line 221, in make_affinity_matrix
cielg = make_cielg(clustering=clustering, r=r,
File "/home/robert/.local/lib/python3.10/site-packages/clusim/clusimelement.py", line 338, in make_cielg
cielg = igraph.Graph.Weighted_Adjacency(projected_adj.tolist(),
AttributeError: 'csr_matrix' object has no attribute 'tolist'. Did you mean: 'tolil'?
Hi, I have recently reinstalled my operating system and all python packages needed for the element-centric similarity score. When I rerun code that worked in my old setup I get an error.
I'm following the example here to compare two hierarchical clusterings: https://github.com/Hoosier-Clusters/clusim/blob/master/examples/CluSim%20Examples%20-%20application%20with%20hierarchical%20clustering.ipynb
and get the following error: