1. 回归:SSE和MSE # MSE损失函数 import torch from torch.nn import MSELoss yhat = torch.randn(size=(50,), dtype=torch.float32) y = torch.randn(size=(50,), dtype=torch.float32) criterion = MSELoss() loss1 = criterion(yhat, y) # 计算mse 误差平方 criterion = MSELoss(...