dashboard / agent /backend /loss.py
hkayabilisim's picture
ui: initial files
a89cb16
raw
history blame
106 Bytes
import torch
def loss_mape(output, target):
return torch.mean(torch.abs((target - output) / target))