pytorch常用损失函数:
https://www.cnblogs.com/wanghui-garcia/p/10862733.html
1.BCELoss(二分类)
2.BCEWithLogitsLoss
4.NLLLoss(多分类)
5.CrossEntropyLoss(多分类)
6.L1Loss(L1 norm)
7.MSELoss(L2 norm)
8.SmoothL1Loss
pytorch常用损失函数:
https://www.cnblogs.com/wanghui-garcia/p/10862733.html
1.BCELoss(二分类)
2.BCEWithLogitsLoss
4.NLLLoss(多分类)
5.CrossEntropyLoss(多分类)
6.L1Loss(L1 norm)
7.MSELoss(L2 norm)
8.SmoothL1Loss