Skip to content

Commit

Permalink
Code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
gtca committed Oct 22, 2024
1 parent 7f7c3d7 commit d61f8b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mofax/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def _make_iterable(x):

def calculate_r2(Z, W, Y):
a = np.nansum((Y - Z.T.dot(W)) ** 2.0)
b = np.nansum(Y ** 2)
b = np.nansum(Y**2)
r2 = (1.0 - a / b) * 100
return r2

Expand Down

0 comments on commit d61f8b8

Please sign in to comment.