Skip to content

Commit

Permalink
Fix bug in MASE score calculation for directed
Browse files Browse the repository at this point in the history
  • Loading branch information
bdpedigo committed Apr 15, 2021
1 parent 3542839 commit b264999
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graspologic/embed/mase.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def fit(self, graphs, y=None):
self.latent_left_ = Uhat
if not undirected:
self.latent_right_ = Vhat
self.scores_ = np.asarray([Uhat.T @ graph @ Uhat for graph in graphs])
self.scores_ = np.asarray([Uhat.T @ graph @ Vhat for graph in graphs])
self.singular_values_ = (sing_vals_left, sing_vals_right)
else:
self.latent_right_ = None
Expand Down

0 comments on commit b264999

Please sign in to comment.