Loss Functions Mathematical Deep Dive — TransformerLab