-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* use lightray branch (#167) * update workflow to build dev branch (#168) * Update `lightray` (#169) * add asds to save augmented batch * move save augmented batch callback to config * overwrite * update lightray * Finalize `lightray` refactor (#170) * update to lightray 0.2.0 * update docs * add logging to cli * clean up tuning changes * remove print * Bump `lightray` version (#172) * update lightray * remove lightning config from tune.yam * parse outdir from env var * remove amplfi-tune executable * update mldatafind * import multimodal psd in embeddings module * dont log validation steop
- Loading branch information
Showing
14 changed files
with
949 additions
and
987 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -11,6 +11,7 @@ on: | |
push: | ||
branches: | ||
- main | ||
- dev | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from .dense import CoherentDenseEmbedding, NChannelDenseEmbedding | ||
from .flattener import Flattener | ||
from .multimodal import MultiModal | ||
from .multimodal import FrequencyPsd, MultiModal, MultiModalPsd | ||
from .resnet import ResNet |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
from .flow import AmplfiFlowCLI | ||
from .similarity import AmplfiSimilarityCLI |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# configuration file to be used with `lightray` | ||
# for running hyper-paramter runing with ray | ||
# see https://github.com/EthanMarx/lightray/ | ||
|
||
# ray.tune.TuneConfig | ||
tune_config: | ||
mode: "min" | ||
metric: "valid_loss_epoch" | ||
scheduler: | ||
class_path: ray.tune.schedulers.ASHAScheduler | ||
init_args: | ||
max_t: 200 | ||
grace_period: 21 | ||
reduction_factor: 2 | ||
num_samples: 1 | ||
reuse_actors: true | ||
|
||
# ray.train.RunConfig | ||
run_config: | ||
name: "my-first-run" | ||
storage_path: ${oc.env:AMPLFI_OUTDIR} | ||
failure_config: | ||
class_path: ray.train.FailureConfig | ||
init_args: | ||
max_failures: 1 | ||
checkpoint_config: | ||
class_path: ray.train.CheckpointConfig | ||
init_args: | ||
num_to_keep: 5 | ||
checkpoint_score_attribute: "valid_loss_epoch" | ||
checkpoint_score_order: "min" | ||
verbose: null | ||
|
||
# ray.train.SyncConfig | ||
sync_config: | ||
sync_period: 1000 | ||
|
||
# ray.init | ||
ray_init: | ||
address: null | ||
|
||
# tune.Tune.param_space | ||
param_space: | ||
model.learning_rate: tune.loguniform(1e-3, 4) | ||
|
||
# ray.tune.TuneCallback | ||
tune_callback: | ||
class_path: lightray.callbacks.LightRayReportCheckpointCallback | ||
init_args: | ||
'on': "validation_end" | ||
checkpoint_every: 10 | ||
|
||
# resources per trial | ||
cpus_per_trial: 2 | ||
gpus_per_trial: 1 | ||
|
||
# lightning cli | ||
lightning_cli_cls: amplfi.train.cli.AmplfiFlowCLI |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.