Multiple pipelines - training and evaluation (#250)

- introduce best practice for multiple pipelines
- Implement evaluation pipeline
- allow for using relative ckpt paths
- general refactoring
- update README.md
This commit is contained in:
ashleve authored and GitHub committed 2022-02-19 19:11:11 +01:00
1 parent 02d3b65aaa
commit fe4e61edc1
25 files changed
+347 -185

No files matched your search

+3 -3
View File
@@ -13,7 +13,7 @@ Use the following command to skip slow tests:
@pytest.mark.slow
def test_experiments():
"""Test running all available experiment configs for 1 epoch."""
command = ["run.py", "-m", "experiment=glob(*)", "++trainer.max_epochs=1"]
command = ["train.py", "-m", "experiment=glob(*)", "++trainer.max_epochs=1"]
run_command(command)
@@ -21,7 +21,7 @@ def test_experiments():
def test_default_sweep():
"""Test default Hydra sweeper."""
command = [
"run.py",
"train.py",
"-m",
"datamodule.batch_size=64,128",
"model.lr=0.01,0.02",
@@ -35,7 +35,7 @@ def test_default_sweep():
def test_optuna_sweep():
"""Test Optuna sweeper."""
command = [
"run.py",
"train.py",
"-m",
"hparams_search=mnist_optuna",
"trainer=default",