-
Hello all, Thank you for this nice project! I am wondering if it's possible to pass patient metadata to the custom get_loss_function defined in the configs/models. I'm thinking specifically of censored data, that I would not want to pass to the model (so non-categorical/numerical features), but that would be useful for my loss function. I would be tempted to include them in the dataset.csv, but I'm not sure how to pass them to my function. Best, Charles |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
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? Update based on discussion: |
Beta Was this translation helpful? Give feedback.
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…