 To allow for multiple entities, a separate margin loss is computed for each capsule.Downweighting the loss for absent entities stops the learning from shrinking activity vector lengths for all entities.The total loss is the sum of the losses of all entities.