Neopulse Loss Fucntion
loss = wasserstein_loss
Calculates the Wasserstein loss for a sample batch.
loss = l1loss
Calculate the L1 loss for a sample batch.
loss = focal_loss:[gamma=2.0, alpha=0.25]
Calculate the focal loss for a sample batch, usually used to deal with class unbalanced problem.
loss = margin_loss
Calculate the margin loss for a sample batch, a common used loss in Vector Capsule Networks with Dynanmic Routing.
loss = "spreadloss"
Calculate the spread loss for a sample batch, a common used loss in Matrix Capsule Networks with EM Routing.