Skip to content
Snippets Groups Projects
Commit 041f25ad authored by William Falcon's avatar William Falcon
Browse files

clean up sample project

parent 8b4ec002
No related branches found
No related tags found
No related merge requests found
...@@ -63,6 +63,20 @@ This project is setup as a package which means you can now easily import any fil ...@@ -63,6 +63,20 @@ This project is setup as a package which means you can now easily import any fil
```python ```python
from project.datasets.mnist import mnist from project.datasets.mnist import mnist
from project.lit_classifier_main import LitClassifier from project.lit_classifier_main import LitClassifier
from pytorch_lightning import Trainer
# model
model = LitClassifier()
# data
train, val, test = mnist()
# train
trainer = Trainer()
trainer.fit(model, train, val)
# test using the best model!
trainer.test(test_dataloaders=test)
``` ```
### Citation ### Citation
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment