Pytorch, Machine Learning, Gradient Descent, Python, Hands On Tutorials.
error. Source: link. Screen capture by author. But there are several other loss functions we could use: L1 loss (torch.nn.L1Loss) accumulates absolute errors. Source: link. Screen capture by author. Huber loss (torch.nn.HuberLoss) uses L2 for small errors and L1 for large. Source: link. Screen