We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
utils.py
adj = adj + (adj.T > adj)
No description provided.
The text was updated successfully, but these errors were encountered:
I tried using this, I find the two give me the same adj_matrix
adj_smpl = adj + (adj.T > adj).astype('int').astype('float adj_kpf = adj + adj.T.multiply(adj.T > adj) - adj.multiply(adj.T > adj) (adj_smpl != adj_kpf).nnz == 0 --> gives True (https://stackoverflow.com/questions/30685024/check-if-two-scipy-sparse-csr-matrix-are-equal)
adj_smpl = adj + (adj.T > adj).astype('int').astype('float
adj_kpf = adj + adj.T.multiply(adj.T > adj) - adj.multiply(adj.T > adj)
(adj_smpl != adj_kpf).nnz == 0
Sorry, something went wrong.
I also found this problem. I think adj.multiply(adj.T > adj) returns a zero matrix. I want to ask what is the effect of subtracting this item?
adj.multiply(adj.T > adj)
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: