Margin Maximization Loss

Where can I find a margin maximization loss?

11

I know how to calculate distance function d and can’t find how to calculate this exact loss.