Closed forechoandlook closed 3 years ago
Maybe your adj
is a numpy array instead of a scipy sparse matrix?
You mean that adj
should be a scipy sparse matrix?
Yes, it must be.
Ok, I will try! Thanks!
Hi, thank you, EdisonLeeeee . But the bug happens at self.feature_scores()
. So that means the feature matrix should be a scipy sparse matrix.
You are absolutely right.
Hi!
I made some modifications to use the "scipy.sparse.csr_matrix" function to make the "X_influencers" to be a scipy sparse matrix. However, when I run the polblogs dataset, I still got the error AttributeError: 'numpy.ndarray' object has no attribute 'A1'
Can you give some suggestions for solving this problem?
Thanks