Skip to content

Generalize Metric to any loss function #3694

@phcerdan

Description

@phcerdan

Is your feature request related to a problem? Please describe.
If I introduce a new loss function, I have to change the metric as well. For example: monai.losses.Dice and monai.metrics.DiceMetric. Most of the losses have not a metric associated.

Describe the solution you'd like
I wonder if the metrics can be made general to any loss function. Where the loss function would be an argument of the metric. Other metric arguments would be the reduction method and similar things.

Describe alternatives you've considered
The alternative is to develop my own Metric every time I change the loss function. But not ideal imo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions