Skip to content

Commit

Permalink
ruff fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rkansal47 authored Sep 3, 2024
1 parent 93cd3e9 commit 883cce1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jetnet/evaluation/gen_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ def _calculate_frechet_distance(mu1, sigma1, mu2, sigma2, eps=1e-6):
covmean, _ = linalg.sqrtm(sigma1.dot(sigma2), disp=False)
if not np.isfinite(covmean).all():
msg = (
"fid calculation produces singular product; " "adding %s to diagonal of cov estimates"
) % eps
"fid calculation produces singular product; " f"adding {eps} to diagonal of cov estimates"
)
logger.debug(msg)
offset = np.eye(sigma1.shape[0]) * eps
covmean = linalg.sqrtm((sigma1 + offset).dot(sigma2 + offset))
Expand Down

0 comments on commit 883cce1

Please sign in to comment.