Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct way to specify loss #345

Open
hvgazula opened this issue Jul 18, 2024 · 0 comments
Open

Correct way to specify loss #345

hvgazula opened this issue Jul 18, 2024 · 0 comments
Labels

Comments

@hvgazula
Copy link
Contributor

hvgazula commented Jul 18, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant