![]() |
Belle II Software release-09-00-03
|


Public Member Functions | |
| def | __init__ (self, alpha_mass=0, ignore_index=-1, reduction="mean") |
| def | forward (self, x_input, x_target, edge_input, edge_target, u_input, u_target) |
Public Attributes | |
| alpha_mass | |
| Parameter controlling the importance of mass term in loss. | |
| LCA_CE | |
| LCA cross-entropy. | |
| mass_CE | |
| Mass cross-entropy. | |
Sum of cross-entropies for training against LCAS and mass hypotheses.
Args:
alpha_mass (float): Weight of mass cross-entropy term in the loss.
ignore_index (int): Index to ignore in the computation (e.g. padding).
reduction (str): Type of reduction to be applied on the batch (``sum`` or ``mean``).
Definition at line 13 of file multiTrain.py.
| def __init__ | ( | self, | |
alpha_mass = 0, |
|||
ignore_index = -1, |
|||
reduction = "mean" |
|||
| ) |
Initialization
Definition at line 23 of file multiTrain.py.
| def forward | ( | self, | |
| x_input, | |||
| x_target, | |||
| edge_input, | |||
| edge_target, | |||
| u_input, | |||
| u_target | |||
| ) |
Called internally by PyTorch to propagate the input.
Definition at line 48 of file multiTrain.py.
| alpha_mass |
Parameter controlling the importance of mass term in loss.
Definition at line 35 of file multiTrain.py.
| LCA_CE |
LCA cross-entropy.
Definition at line 38 of file multiTrain.py.
| mass_CE |
Mass cross-entropy.
Definition at line 42 of file multiTrain.py.