Open melnimr opened 2 years ago
When I look at :
error += (model(data) * std - data.y * std).abs().sum().item() # MAE
I am curious what the .sum is doing here? Aren't these just the errors for each entry in the batch, why do you need to sum them?
When I look at :
I am curious what the .sum is doing here? Aren't these just the errors for each entry in the batch, why do you need to sum them?