shchur / overlapping-community-detection

Implementation of "Overlapping Community Detection with Graph Neural Networks"
http://www.daml.in.tum.de/nocd
MIT License
157 stars 45 forks source link

What is A1 #8

Open rajatkofficial opened 3 years ago

rajatkofficial commented 3 years ago

In the nocd/sampler.py to_keep = (1 - self.A[cne1, cne2]).astype(np.bool).A1 * (cne1 != cne2)

What is A1 here this is causing Error

shchur commented 3 years ago

This function might have been deprecated, here is the explanation with a possible fix to the problem https://numpy.org/doc/stable/reference/generated/numpy.matrix.A1.html