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

How to use dropout in eval_ #155

Open
iuimaki opened this issue Dec 28, 2022 · 1 comment
Open

How to use dropout in eval_ #155

iuimaki opened this issue Dec 28, 2022 · 1 comment

Comments

@iuimaki
Copy link

iuimaki commented Dec 28, 2022

Hi, first of thank you so much for this great python package.

I am wondering how to approach the MC dropout in deepsurv model, i.e., keep the dropout active when evaluating testing data. I am very new to PyTorch and it is difficult for me to modify the source code. Many many thanks for any suggestions and instructions!!

@sourasen1011
Copy link

Hi, I am trying to work this out as well. Haven't gotten around to it yet, but seems as (deceptively) simple as keeping model.train() as a way to prime the model for 'training' even while predicting. This way, the dropout layers remain active during prediction thereby resulting in some randomness, which can then be used to get ideas about the distributions.

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