What's the difference between prediction and test? #11455
Replies: 1 comment 1 reply
-
If you mean when to use test vs predict, I've traditionally seen it this way: Prediction: There are no labels available, only the model inputs, meaning prediction isn't used for evaluation Regarding differences in Lightning, the two code paths are pretty similar are very similar. The model is put into eval mode, gradients are disabled, and the trainer makes one pass through the corresponding dataloader(s), calling the relevant hooks in the Lightning Module or callback (prefixed with test or predict) |
Beta Was this translation helpful? Give feedback.
-
What's the difference between prediction and test:
predict_step vs test_step?
trainer.predict() vs trainer.test()?
In what use cases should I prefer using the one over the other?
Beta Was this translation helpful? Give feedback.
All reactions