You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
some are logits (e.g., in files of model_MLPWSI.py and model_TMIL.py):
#---> get logits
logits = self.to_logits(embedding)
return logits
even in some cases you comment out these codes (e.g., model_DeepMISL.py):
logits = self.classifier(h).unsqueeze(0) # logits needs to be a [1 x 4] vector
# Y_hat = torch.topk(logits, 1, dim = 1)[1]
# hazards = torch.sigmoid(logits)
# S = torch.cumprod(1 - hazards, dim=1)
# return hazards, S, Y_hat, None, None
return logits
I wonder this is a modified version for some tests, or you have included some data-processing codes elsewhere (however, I have checked Dataset and collate_fn part and do not find these processings). So is it true to directly use your bash scripts for the models using "logits" as output of forward ?
The text was updated successfully, but these errors were encountered:
Thank you for sharing this outstanding work!
I notice in your code there are different outputs in different models (https://github.com/mahmoodlab/SurvPath/tree/3f73ddd6705ec67d643020c5bb04fb13f9f382cc/models):
some are risks (e.g., in files of model_SurvPath.py and model_ABMIL.py):
some are logits (e.g., in files of model_MLPWSI.py and model_TMIL.py):
even in some cases you comment out these codes (e.g., model_DeepMISL.py):
I wonder this is a modified version for some tests, or you have included some data-processing codes elsewhere (however, I have checked Dataset and collate_fn part and do not find these processings). So is it true to directly use your bash scripts for the models using "logits" as output of forward ?
The text was updated successfully, but these errors were encountered: