Validation_set_Accuracy in MONAILabel

Hello

I am currently using MONAILabel extension with Slicer and I would like to ask how I can define which data is assigned for the calculation of the validation Dice similarity metric. I know I can adjust the percentage which is used for this calculation but can I also select on which data would this calculation based on?

Thank you :slight_smile:

1 Like

Hi @Spiros_Karkavitsas,

Good question. Here is the method used to split the training and validation dataset: https://github.com/Project-MONAI/MONAILabel/blob/main/monailabel/tasks/train/basic_train.py#L394-L412

you could replace this method in the training file (BasicTrainTask class) like this: https://github.com/Project-MONAI/MONAILabel/blob/testsMICCAI/sample-apps/deepedit_multilabel/lib/train.py#L242-L256

hope this helps,