asl
            AsymmetricLoss(gamma_neg=4, gamma_pos=0, m=0.05, eps=1e-08, disable_torch_grad_focal_loss=False, apply_sigmoid=True)
¶
  
            Bases: Module
Notice - optimized version, minimizes memory allocation and gpu uploading, favors inplace operations.
Parameters:
- 
        gamma_neg
            (float, default:4) –gamma for negative samples 
- 
        gamma_pos
            (float, default:0) –gamma for positive samples 
- 
        m
            (float, default:0.05) –bias value added to negative samples 
- 
        eps
            (float, default:1e-08) –epsilon to avoid division by zero 
- 
        disable_torch_grad_focal_loss
            (bool, default:False) –if True, disables torch grad for focal loss 
- 
        apply_sigmoid
            (bool, default:True) –if True, applies sigmoid to input before computing loss 
Source code in quadra/losses/classification/asl.py
                | 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |  | 
          forward(x, y)
¶
  Compute the asymmetric loss.
Parameters:
Returns:
- 
            Tensor–asymettric loss 
Source code in quadra/losses/classification/asl.py
            | 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |  |