Skip to content

Commit

Permalink
switch DQCD jagged order to min(chi2); add muonSV_mass; plug-in icebo…
Browse files Browse the repository at this point in the history
…ost (neural mutual info regularization)
  • Loading branch information
mieskolainen committed Feb 5, 2024
1 parent a3c6fa1 commit f6dad8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions icenet/deep/losstools.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ def loss_wrapper(model, x, y, num_classes, weights, param, y_DA=None, weights_DA
def MI_helper(log_phat):
if MI is not None:
X = MI['x'].float()
Z = torch.exp(log_phat[:, MI['y_index']]) # Classifier output
Z = torch.exp(log_phat[:, MI['y_dim']]) # Classifier output
return {f'MI x $\\beta = {MI["beta"]}$': MI_loss(X=X, Z=Z, weights=weights, MI=MI, y=y)}
else:
return {}

if param['lossfunc'] == 'cross_entropy':
log_phat = torch.log(model.softpredict(x) + EPS)

Expand Down

0 comments on commit f6dad8d

Please sign in to comment.