We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ecf5c69 + ad548c1 commit 9d88b79Copy full SHA for 9d88b79
mlcolvar/core/loss/committor_loss.py
@@ -157,7 +157,7 @@ def committor_loss(x: torch.Tensor,
157
if delta_f < 0: # B higher in energy --> A-B < 0
158
w[mask_B] = w[mask_B] * torch.exp(delta_f.to(device))
159
elif delta_f > 0: # A higher in energy --> A-B > 0
160
- w[mask_A] = w[mask_A] * torch.exp(delta_f.to(device))
+ w[mask_A] = w[mask_A] * torch.exp(-delta_f.to(device))
161
162
###### VARIATIONAL PRINICIPLE LOSS ######
163
# Each loss contribution is scaled by the number of samples
0 commit comments