Skip to content

Question about sum() being called on the errors #10

@melnimr

Description

@melnimr

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions