Open monajalal opened 2 years ago
Hi Mona -
The average is just a simple average of all the probability for a given class. Above, if you just have 2 tiles, for class "0" average probability will be (0.8992 + 0.7603 ) / 2 and for class "1", it will be (0.1008 0 + 0.2397 0) / 2
And this is done for each tile (out2... files) or each patient (out3.... files)
Best, Nicolas
Hi Nicolas,
In your paper, you have mentioned that after running the trained model on the test data points, you do tile aggregation by averaging output probability or To assess the accuracy on the test set, the per-tile classification results were aggregated on a per-slide basis either by averaging the probabilities obtained on each tile or by counting the percentage of tiles positively classified, thus generating a per-slide classification.
I have the following outputs when I run the saved finetuned Inception V3 on binary labels for classification task which was already pre-trained on Inception V3, on a test image:
and result is:
By averaging the output probabilities, do you mean that you get the max probability 0.89 here and multiply it by the label, 0, here as well and do same for each tile in a given WSI? Or what do you exactly mean? Would you please be able to provide a formula for this or walk me through it?
I am ending up having all of my test preds as 0 so I am unsure how the
tile aggregation by averaging output probability
in done in your case. Even if I do weighted averaging based on the probabilities, still, I end up with all 0s.so, please assume we have the following results for two tiles in test set that both belong to the same WSI and that WSI presumably has two tiles.
if I have this for one test data point
and this for another test datapoint:
For example, after 100 epochs of training for EGFR LUAD images, this is what I get as a prediction on WSI level tiles. I have created a dictionary of WSIs where each WSI itself is another dictionary for prediction for all tiles, and probabilities for all tiles. As you see, barely any tile values get 1. And only for one WSI, 2 of the tiles, become 1 (EGFR).
So for the EGFR finetuning of Inception V3, how many epochs should I use? How do you do the tile aggregation by averaging the output probability here? using (0.8992 0 + 0.7603 0) / 2 ?
If this is the case, my concern is since majority of data is class 0, this would result with 0 as the label as well.
Thanks for any lead.