Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Passing data to a custom loss function #491

Answered by ant0nsc
cacof1 asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not sure I understand the question fully. Is the ask to have a loss function that depends on something in the dataset that is specific to each patient? Or something constant across all patients?
It could help if you say a bit more about your data. Is that segmentation? classification?

Update based on discussion:
I'm afraid the out-of-the-box models will then not work for your use-case. The loss functions that you can create with the get_loss_function method will always be called with arguments (logits, labels) - not even a subject ID or something alike.
Have you looked into the "bring your own model" framework described here? With that, you would have complete freedom to define custom…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@cacof1
Comment options

@ant0nsc
Comment options

@cacof1
Comment options

@cacof1
Comment options

Answer selected by cacof1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants