Best Practices #19545
Closed
istranical
started this conversation in
General
Best Practices
#19545
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm struggling to find examples for setting up training + validation when using the
Trainer
withdatamodule
input.It seems like
trainer.fit(model, datamodule = ....)
never performs validation, even if the validation step is defined in the model. Does that mean that I need to specify training and validation separately usingtrainer.fit
andtrainer.validate
?Specifying
train_dataloader
andval_dataloaders
totrainer.fit()
works just fine, but then I lose the benefits of using the datamodule intrainer.fit(..)
, includingprepare_data()
andsetup()
running automatically.What's the best practice here? I feel like I'm missing something.
Beta Was this translation helpful? Give feedback.
All reactions