Skip to content

Commit

Permalink
fixing s2_loss annotate bug
Browse files Browse the repository at this point in the history
  • Loading branch information
cecilia-ferrari committed Jan 11, 2024
1 parent b21805c commit 79441d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flamedisx/lxe_blocks/s2_loss.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def _annotate(self, d):
s2_survival_probability = self.gimme_numpy('s2_survival_p')

mle = d['s2_raw' + '_mle'] = \
(d['s2_raw_after_loss_' + '_mle'] / s2_survival_probability).clip(0, None)
(d['s2_raw_after_loss' + '_mle'] / s2_survival_probability).clip(0, None)
s = d['s2_raw'] * s2_survival_probability*(1-s2_survival_probability)
scale = mle**0.5 * s / s2_survival_probability

Expand Down

0 comments on commit 79441d1

Please sign in to comment.