improve experiment configs
This commit is contained in:
1 parent
fe81cbb304
commit
9cffc61c20
25 files changed
+204
-124
No files matched your search
@@ -21,11 +21,9 @@ class LitModel(pl.LightningModule):
|
||||
https://pytorch-lightning.readthedocs.io/en/latest/lightning_module.html
|
||||
"""
|
||||
|
||||
def __init__(self, hparams: dict = None):
|
||||
def __init__(self, **kwargs):
|
||||
super().__init__()
|
||||
|
||||
if hparams:
|
||||
self.save_hyperparameters(hparams)
|
||||
self.save_hyperparameters(kwargs)
|
||||
|
||||
self.model = SimpleMNISTClassifier(hparams=self.hparams)
|
||||
|
||||
|
||||
Reference in new issue
Block a user