everything except callbacks works

This commit is contained in:
hobogalaxy committed 2020-12-12 22:05:48 +01:00
1 parent f46f380261
commit 757f0fc25a
7 files changed
+189 -148

No files matched your search

@@ -9,18 +9,16 @@ from models.simple_mnist_classifier.models import *
class LitModel(pl.LightningModule):
"""
This is example of lightning model for MNIST digits classification.
All models should be located in separate folders with file named 'lightning_module.py' containing class which
is always called 'LitModel'!
This is example of lightning model for MNIST digits classification.
The folder name of model used during training should be specified in run config and all parameters from
'model' section will be passed in 'hparams' dictionary.
The path to model should be specified in your run config. (run_configs.yaml)
The 'hparams' dict contains your hparams specified in run config! (run_configs.yaml)
This class enables you to specify what happens during training, validation and test step.
You can just remove 'validation_step()' or 'test_step()' methods if you don't want to have them during training.
This class enables you to specify what happens during training, validation and test step.
You can just remove 'validation_step()' or 'test_step()' methods if you don't want to have them during training.
"""
def __init__(self, hparams=None):
def __init__(self, hparams: dict = None):
super().__init__()
if hparams: