Skip to content

Commit

Permalink
Merge pull request #1 from ManuSetty/master
Browse files Browse the repository at this point in the history
Merge
  • Loading branch information
ManuSetty authored Aug 29, 2018
2 parents ac5f7bc + 96bbc41 commit d1ecc17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/harmony/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def _convert_to_affinity(adj, scaling_factors, with_self_loops=False):
"""
N = adj.shape[0]
rows, cols, dists = find(adj)
dists = dists / (scaling_factors.values[rows] ** 2)
dists = dists ** 2/ (scaling_factors.values[rows] ** 2)

# Self loops
if with_self_loops:
Expand Down

0 comments on commit d1ecc17

Please sign in to comment.