Can .test() be used inside of .fit()? #20180
Unanswered
khari998
asked this question in
code help: RL / MetaLearning
Replies: 1 comment
-
I ended up just using my test data loader as my second validation loader by returning an array of dataloaders in the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was trying to run my testing alongside my validation phase so I could test the model on the entire training dataset. In my DataModule, I am correctly returning the DataLoader in from the test_dataloader method so my test() function is working when I call it, however I keep getting an error whenever I run the test method inside my fit() loop regardless of whether its with the use of a callback or not. For my current callback I have:
and im also using eval_frequency to modulate when my validation round runs with:
And with this, Im able to get my testing loop running, but at the end of testing phase I get:
And when I looked in the code, it has something to do with the _results not being set properly on the active loop. But when I move .test() to outside of .fit() I don't run into this error at all. Any idea what could be happening? Or is it just not possible to run .test() inside of .fit() ?
Beta Was this translation helpful? Give feedback.
All reactions