YohnGuan/NAGCN

Error in codebook_generation

lcernyo opened this issue · 0 comments

I run into an error when I reach the following script part in K_cluster_in_cluster function. In the line

random_ind = np.random.choice(np.where(clser_lbl == j)[0])

I get the following error:

ValueError: 'a' cannot be empty unless no samples are taken

From my understanding, clser_lbl are the labels for each nodes. However, after the first loop all nodes get labeled as 1 and this error is thrown out.