Novartis / torchsurv

Deep survival analysis made easy
http://opensource.nibr.com/torchsurv/
MIT License
69 stars 7 forks source link

Set the model to evaluation model in notebook #64

Closed melodiemonod closed 1 week ago

melodiemonod commented 2 weeks ago

The model was not set to evaluation mode in the notebook before evaluating the parameters on test. We included dropout layers. They will randomly set a fraction of the inputs to zero during training, which helps prevent overfitting. However, dropout is also active during evaluation if the model is not set to evaluation mode.

I added weibull_model.eval() and cox_model.eval() before the parameters evaluation on data from dataloader_test.