Skip to content

Correct way to specify loss #345

@hvgazula

Description

@hvgazula

What is the correct way to specify a loss? This will be relevant for streamlining the process of defining new losses.

losses.dice as seen in

or

losses.Dice() as seen in

model.compile('sgd', loss=nobrainer.losses.Dice())

Check how using either impact saving/loading the model.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions