We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 850ac84 commit b59702cCopy full SHA for b59702c
Markov_Clustering_Algorithm/mcl.py
@@ -2,7 +2,6 @@
2
import re
3
import sklearn.preprocessing
4
from scipy.sparse import csr_matrix
5
-from scipy.sparse import dok_matrix
6
from scipy.sparse import random
7
8
np.set_printoptions(suppress=True)
@@ -97,9 +96,10 @@ def prune(matrix, dimensions):
97
96
98
#THIS IS TO BE CALLED
99
def mcl_algorithm(matrix, dimensions):
100
- selfLoop(matrix, dimensions)
+ #selfLoop(matrix, dimensions)
101
102
- sp_matrix_orig = csr_matrix(np.matrix(matrix))
+ #This has to be in csr format
+ sp_matrix_orig = matrix
103
104
normalize(sp_matrix_orig)
105
0 commit comments