-
Notifications
You must be signed in to change notification settings - Fork 0
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
Set default models to training
mode in the train_step
.
#103
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #103 +/- ##
==========================================
- Coverage 34.83% 34.75% -0.08%
==========================================
Files 18 18
Lines 887 889 +2
==========================================
Hits 309 309
- Misses 578 580 +2 ☔ View full report in Codecov by Sentry. |
It really seems like we should add a test for this. Maybe we do a few dozen epochs in CI on CIFAR10 and ExampleAutoencoder, and threshold either loss or confusion matrix values? That being said I have not objection to merging this as-is. |
Yeah, I'm not sure what the best way to test this would be. It seems like there is an attribute I'll create a follow up issue to add some kind of testing around this. |
new issue here: #104 |
It turns out that we have to explicitly set the model to
training
mode to actually train it. Oddly this isn't mentioned in the pytorch example code that was used when adding the ExampleCNN model.For now, I've added
model.train()
to thecreate_trainer
andmodel.eval()
to thecreate_evaluator
functions.Confusion matrix before adding
model.train()
Confusion matrix after adding
model.train()
10 epochsConfusion matrix after adding
Overall accuracy for this is about 64%, which is a little better than the pytorch example code that got to about 54%.model.train()
50 epochs