forked from ashleve/lightning-hydra-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add example config for
serial_sweeper
group + pytest
Also fix how `hydra_serial_sweeper` decorator handles job returning Nones or NaNs
- Loading branch information
1 parent
e8882bb
commit 0e43234
Showing
4 changed files
with
48 additions
and
6 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
src/lightning_hydra_template/configs/serial_sweeper/seeds.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# This custom sweeper tries to emulate closely the syntax of Hydra's built-in BasicSweeper | ||
# https://hydra.cc/docs/tutorials/basic/running_your_app/multi-run/#sweeping-via-hydrasweeperparams | ||
|
||
# The keys indicate the config nodes to sweep over, in dot-notation | ||
# The values define how to sweep, and have to be one of the sweep overrides defined by Hydra | ||
# https://hydra.cc/docs/advanced/override_grammar/extended/#sweeps | ||
|
||
params: | ||
seed: range(5) # By default, sweep over 5 seeds | ||
# For nested config values, use dot-notation, e.g.: | ||
# model.optimizer.lr: choice(0.1,0.01,0.001) | ||
|
||
# If the experiment return a value, e.g. a performance metric, `reduce` defines how to aggregate over the sweep | ||
reduce: | ||
_target_: numpy.nanmean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters