Skip to content

Commit

Permalink
fix for #94
Browse files Browse the repository at this point in the history
  • Loading branch information
ysig committed Oct 21, 2023
1 parent 863e948 commit 130973a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grakel/kernels/neighborhood_subgraph_pairwise_distance.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def fit_transform(self, X, y=None):
K_diag = K.diagonal()
N[key] = K_diag
Q = K / np.sqrt(np.outer(K_diag, K_diag))
S += np.fill_diag(np.nan_to_num(Q), np.nan_to_num(np.diag(Q), 1))
S += np.fill_diagonal(np.nan_to_num(Q), np.nan_to_num(np.diag(Q), 1))

self._X_level_norm_factor = N

Expand Down

0 comments on commit 130973a

Please sign in to comment.