miccaiif / DGMIL

Official PyTorch implementation of our MICCAI 2022 paper: DGMIL: Distribution Guided Multiple Instance Learning for Whole Slide Image Classification.
32 stars 3 forks source link

How to classify testing slides? #8

Closed qyn0729 closed 8 months ago

qyn0729 commented 1 year ago

Thank you for your great work!

The paper mentioned that "For bag-level classification, we only use the simple mean- pooling approach to aggregate the positive scores of all instances in a bag." How do you set the threshold value to distinguish between negative and positive bags in the testing set?

miccaiif commented 1 year ago

Hello! Thank you for your attention! The threshold was selected based on the validation set. In fact, our goal is to obtain a good instance classifier, and as for the bag-level classification, any other method can be used for aggregation based on the output of the instance classifier, including re-fitting the bag boundaries. In the text, to demonstrate the effectiveness of our instance classifier, we only used mean pooling to obtain the bag prediction.