Skip to content

Commit

Permalink
Refactor loss arguments.
Browse files Browse the repository at this point in the history
  • Loading branch information
tibuch committed Apr 1, 2021
1 parent bb9ea43 commit 2515356
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fit/modules/loss.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
from fit.utils.utils import denormalize_amp, denormalize_phi


def _fc_prod_loss(pred_fc, target_fc, mag_min, mag_max):
pred_amp = denormalize_amp(pred_fc[..., 0], amp_min=mag_min, amp_max=mag_max)
target_amp = denormalize_amp(target_fc[..., 0], amp_min=mag_min, amp_max=mag_max)
def _fc_prod_loss(pred_fc, target_fc, amp_min, amp_max):
pred_amp = denormalize_amp(pred_fc[..., 0], amp_min=amp_min, amp_max=amp_max)
target_amp = denormalize_amp(target_fc[..., 0], amp_min=amp_min, amp_max=amp_max)

pred_phi = denormalize_phi(pred_fc[..., 1])
target_phi = denormalize_phi(target_fc[..., 1])
Expand Down

0 comments on commit 2515356

Please sign in to comment.