Skip to content

Commit

Permalink
Merge pull request #150 from rjurney/rjurney/dependency-update
Browse files Browse the repository at this point in the history
Dependency Update
  • Loading branch information
LucaCappelletti94 authored Feb 22, 2024
2 parents d750b33 + 84ef32d commit ed71593
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions karateclub/community_detection/overlapping/danmf.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ def _setup_target_matrices(self, graph):
self._graph = graph
self._A = nx.adjacency_matrix(
self._graph, nodelist=range(self._graph.number_of_nodes())
)
).todense()
self._L = nx.laplacian_matrix(
self._graph, nodelist=range(self._graph.number_of_nodes())
)
).todense()
self._D = self._L + self._A

def _setup_z(self, i):
Expand All @@ -72,6 +72,7 @@ def _sklearn_pretrain(self, i):
Arg types:
* **i** *(int)* - The layer index.
"""

nmf_model = NMF(
n_components=self.layers[i],
init="random",
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

install_requires = [
"numpy>=1.22.0",
"networkx==2.8.*",
"networkx>=3.1",
"decorator==5.1.*",
"pandas>=1.2.0",
"gensim>=4.0.0",
Expand Down

0 comments on commit ed71593

Please sign in to comment.