File size: 1,075 Bytes
fc0f7bd | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | ---
id: workdir
title: Customizing working directory pattern
sidebar_label: Customizing working directory pattern
---
Below are a few examples of customizing output directory patterns.
Run output directory grouped by day:
```yaml
hydra:
run:
dir: ./outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
```
Sweep sub directory contains the the job number and the override parameters for the job instance:
```yaml
hydra:
sweep:
subdir: ${hydra.job.num}_${hydra.job.num}_${hydra.job.override_dirname}
```
Run output directory grouped by job name:
```yaml
hydra:
run:
dir: outputs/${hydra.job.name}/${now:%Y-%m-%d_%H-%M-%S}
```
Run output directory can contain user configuration variables:
```yaml
hydra:
run:
dir: outputs/${now:%Y-%m-%d_%H-%M-%S}/opt:${optimizer.type}
```
Run output directory can contain override parameters for the job:
See [Override dirname](./job#hydrajoboverride_dirname) in the Job configuration page for details on how to customize
`hydra.job.override_dirname`.
```yaml
hydra:
run:
dir: output/${hydra.job.override_dirname}
```
|