-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.py
More file actions
21 lines (15 loc) · 763 Bytes
/
run.py
File metadata and controls
21 lines (15 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import click
from pydentification.experiment.entrypoints import run # isort:skip
from pydentification.experiment.entrypoints import sweep as sweep_entrypoint # isort:skip
import src.runner as runtime # alias entire module with required functions # isort:skip
@click.command()
@click.option("--data", type=click.Path(exists=True), required=True)
@click.option("--experiment", type=click.Path(exists=True), required=True)
@click.option("--sweep", type=bool, is_flag=True, default=False)
def main(data: str, experiment: str, sweep: bool):
if sweep:
sweep_entrypoint(data=data, experiment=experiment, runtime=runtime) # noqa
else:
run(data=data, experiment=experiment, runtime=runtime) # noqa
if __name__ == "__main__":
main()