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

Evaluate two or more test sets individually #80

Open
lyhyl opened this issue Jun 19, 2023 · 1 comment
Open

Evaluate two or more test sets individually #80

lyhyl opened this issue Jun 19, 2023 · 1 comment

Comments

@lyhyl
Copy link
Contributor

lyhyl commented Jun 19, 2023

Is it possible to evaluate two or more test sets individually?
Train on A, test on B, C, D, ... and output corresponding performances (perf-B, perf-C, perf-D, ...)?
I have tried to set images_test and segmentations_test as follow:

experiment.images_train.append(A_img_train)
experiment.segmentations_train.append(A_seg_train)

experiment.images_test.append(A_img_test)
experiment.segmentations_test.append(A_seg_test)
experiment.images_test.append(B_img)
experiment.segmentations_test.append(B_test)

...

experiment.add_evaluation()

experiment.set_multicore_execution()
experiment.execute()

But only one performance/evaluation is outputed.
In addition, I have checked estimator_all_0.hdf5. It seems that only A_img_test and A_seg_test are used in testing phase.

@MStarmans91
Copy link
Owner

Currently, WORC only supports specifying one test set only. Appending multiple objects to the images_test object is intended when using multiple images per sample / patient, e.g. a T1-weighted MRI and a T2-weighted MRI.

I am working on an Inference workflow, where you can provide a trained model and test it on another dataset, which would also support your use case. For now, you will just have to run multiple experiments, one for each test set. There will be a model trained per experiment, so that costs you some extra time, but evaluation on each test set will be similar then if we would do this all in one experiment.

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

No branches or pull requests

2 participants