bis_protein_structure.TORSION2.torsion_angle_loss¶
- bis_protein_structure.TORSION2.torsion_angle_loss(a, a_gt, tor_masks)[source]¶
Computes the loss for torsion angles based on the difference between predicted angles and ground truth angles, including penalties for angle normalization.
- Parameters:
- Returns:
A dictionary containing the total loss, backbone loss, and sidechain loss.
- Return type:
dict